zoontek / react-native-permissions

An unified permissions API for React Native on iOS, Android and Windows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build failure - Missing libReactNativePermissions.a

tomchinery opened this issue · comments

Hello,

I can't seem to get this working, using React Native and have followed these steps from the readme:

  • npm install --save react-native-permissions
  • rnpm link

Then running react-native run-ios results in:

Found Xcode project CandidateApp.xcodeproj
Launching iPhone 6 (9.3)...
Building using "xcodebuild -project CandidateApp.xcodeproj -scheme CandidateApp -destination id=EDA8ACD0-CC57-4E0D-9126-3913C8991B17 -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/tom/Projects/candidate-native-app/ios/build

=== BUILD TARGET RNI18n OF PROJECT RNI18n WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTLinking OF PROJECT RCTLinking WITH CONFIGURATION Debug ===
Check dependencies

=== BUILD TARGET RCTWebSocket OF PROJECT RCTWebSocket WITH CONFIGURATION Debug ===
Check dependencies

=== BUILD TARGET ReactNativePermissions OF PROJECT ReactNativePermissions WITH CONFIGURATION Debug ===

Check dependencies
Unable to run command 'Libtool libReactNativePermissions.a' - this target might include its own product.

=== BUILD TARGET RCTVibration OF PROJECT RCTVibration WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET ReactNativeConfig OF PROJECT ReactNativeConfig WITH CONFIGURATION Debug ===
Check dependencies

=== BUILD TARGET RCTActionSheet OF PROJECT RCTActionSheet WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET React OF PROJECT React WITH CONFIGURATION Debug ===
Check dependencies

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/CandidateApp.app
Launching org.reactjs.native.example.CandidateApp
org.reactjs.native.example.CandidateApp: 14142

I opened my project in xCode and found that libReactNativePermissions.a is missing in the ReactNativePermissions project. Any ideas?

Cheers.

Have you added the ReactNativePermissions project to the libraries folder in your Xcode project? That may be the issue. Check out linking libraries on the Facebook ReactNative docs.

@tomchinery really sorry for the late, late reply. Have you tried @crellison 's suggestion?

Have the exact same issue. I tried @crellison 's suggestion but it doesn't seem to work. Any help would be appreciated (Couldnt find the libreactnativepermissions.a file)! Thanks

@srshah19 - it's in xcode -> Libraries -> ReactNativePermissions.xcodeproj -> Projects

@tomchinery - closing for now. If you're still experiencing this issue, please reopen