2017-07-21 1 views
0

Je cherche à utiliser la bibliothèque Tipsi-bande: https://github.com/tipsi/tipsi-stripeld: bibliothèque introuvable pour -lStripe

J'ai suivi les instructions d'installation manuelle comme indiqué dans le README (ajouté TPSStripe.xcodeproj aux bibliothèques, etc.) et exécutez react-native link ainsi que react-native link tipsi-stripe (avec succès, je pourrais ajouter)

Cependant quand je lance react-native run-ios, ou construire avec Xcode je reçois:

ld: library not found for -lStripe 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 



** BUILD FAILED ** 


The following build commands failed: 
    Ld build/Build/Products/Debug-iphonesimulator/myApp.app/myApp normal x86_64 
(1 failure) 

Installing build/Build/Products/Debug-iphonesimulator/myApp.app 
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): 
Failed to install the requested application 
The bundle identifier of the application could not be determined. 
Ensure that the application's Info.plist contains a value for CFBundleIdentifier. 
Print: Entry, ":CFBundleIdentifier", Does Not Exist 

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/flockCover.app/Info.plist 
Print: Entry, ":CFBundleIdentifier", Does Not Exist 

Répondre

0

C'est la question sans fin et il est la loi Il ne s'agit pas du code de la bibliothèque, mais de l'approche de construction de Xcode.

Je crois qu'il n'y a pas de façon particulière de le résoudre dans tous les cas car chaque cas peut être différent. Nous avons des billets sur les bibliothèques réagissent-natives +, où vous pouvez trouver une solution de travail pour votre cas: