ld:找不到-lStripe的库

时间:2017-07-21 01:11:51

标签: ios react-native linker stripe-payments xcodebuild

我正在尝试使用tipsi-stripe库:https://github.com/tipsi/tipsi-stripe

我已按照自述文件中所列的手动安装说明(将TPSStripe.xcodeproj添加到库等)并运行react-native link以及react-native link tipsi-stripe(我可能会成功添加)

但是,当我运行react-native run-ios或使用xcode构建时,我得到:

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

1 个答案:

答案 0 :(得分:0)

这是一个永无止境的问题,它实际上不是关于库代码,而是关于Xcode构建方法。

我认为没有特别的方法可以解决所有情况,因为每种情况可能都不同。 我们有一些关于react-native +库的门票,你可以找到适用于你的案例的工作解决方案: