Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize xcworkspace in addition to Podfile for Cocoapods detection #20486

Closed
dcramer opened this issue Aug 1, 2018 · 5 comments
Closed

Utilize xcworkspace in addition to Podfile for Cocoapods detection #20486

dcramer opened this issue Aug 1, 2018 · 5 comments
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@dcramer
Copy link

dcramer commented Aug 1, 2018

Environment

  OS: macOS High Sierra 10.13.4
  Node: 8.11.3
  Yarn: 1.9.2
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: Xcode 9.4.1 Build version 9F2000
  Android Studio: Not Found

Packages: (wanted => installed)
  react: 16.3.1 => 16.3.1
  react-native: ~0.55.2 => 0.55.4

Description

Let me preface this with: I have no idea what I'm doing. Hadn't touched RN before earlier this week.

I had a Podfile present in my path (I was intending to use it in the future), and RN's linker seems to utilize that to detect if we're using Cocoapods or not.

This caused errors such as the following from react-native-sentry:

/Users/redacted/Development/redacted/ios/redacted/AppDelegate.m:15:9: fatal error: ‘RNSentry.h’ file not found
#import “RNSentry.h” // This is used for versions of react < 0.40

I ultimately discovered that it had modified the Podfile and was expecting the dependencies to be linked from Cocoapods. After doing unlink on the modules, renaming the Podfile, and re-linking them, my project was able to successfully compile.

@dcramer dcramer changed the title Utilize xcworkspace instead of xcproject for Cocoapods Utilize xcworkspace in addition to Podfile for Cocoapods detection Aug 1, 2018
@react-native-bot

This comment has been minimized.

@hramos hramos added Platform: iOS iOS applications. 🔧Tooling and removed ⏪Old Version labels Aug 2, 2018
@hramos
Copy link
Contributor

hramos commented Aug 2, 2018

Removing old version label as this is unlikely to have been fixed in 0.56.

@react-native-bot
Copy link
Collaborator

I am closing this issue because it does not appear to have been verified on the latest release, and there has been no followup in a while.

If you found this thread after encountering the same issue in the latest release, please feel free to create a new issue with up-to-date information by clicking here.

@react-native-bot react-native-bot added the Ran Commands One of our bots successfully processed a command. label Aug 17, 2018
@hramos hramos reopened this Aug 17, 2018
@stale
Copy link

stale bot commented Nov 15, 2018

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Nov 15, 2018
@stale
Copy link

stale bot commented Nov 22, 2018

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Nov 22, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Nov 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants