Skip to content

Utilize xcworkspace in addition to Podfile for Cocoapods detection #20486

Closed
@dcramer

Description

@dcramer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSiOS applications.Ran CommandsOne of our bots successfully processed a command.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions