-
Notifications
You must be signed in to change notification settings - Fork 331
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
Apple Mach-O Linker Error Group #2
Comments
有用的信息太少了。 |
ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Example-hkwtfydlvudojzengfoqzkoemvmx/Build/Products/Debug-iphonesimulator/React' |
如果你要用 xcode 运行的话,要打开 Example.xcworkspace,而不是 Example.xcodeproj。 实际上没必要打开 xcode, 如果是新项目,通过 |
解决了,react-native 0.45 执行 pod install 后 会提示 jschelpers/JavaScriptCore.h file not found 我把Podfile修改了下编译成功
|
我还没试过 0.45 |
我新建项目试了下,0.45 确实会出现 jschelpers/JavaScriptCore.h file not found 的错误,那是因为 default_subspec "Core" 不再依赖 cxxreact,而这个库间接依赖 jschelpers。 你上面提到的 issue 虽然不是直接关联,但提供了线索:facebook/react-native@5aca739cc25949eebc04a0309c2944f92b5b5391。 那么解决的方法其实不是添加 subspaces => ['BatchedBridge', 'Core'],而是 subspaces => ['jschelpers_legacy'],BatchedBridge 只是因为依赖 jschelpers_legacy 而恰巧解决了问题 。 还有另一种方法,就是使用新的 jschelpers,但这样 Podfile 写起来就很麻烦,因为要依赖 Folly、DoubleConversion、GLog、boost,而且还不能直接引用 third-party-podspecs(或者是我的方法不对?)。不管怎么样,Podfile 大概会写成这样: platform :ios, '8.0'
target 'Your Target' do
pod 'Folly', path: '...'
pod 'DoubleConversion', path: '...'
pod 'GLog', path: '...'
pod 'Yoga', path: '../node_modules/react-native/ReactCommon/yoga/'
pod 'React', path: '../node_modules/react-native/', :subspecs => [
'jschelpers',
]
pod 'react-native-amap3d', path: '../node_modules/react-native-amap3d/'
end |
Xcode8.3 编译报错 Apple Mach-O Linker Error Group ,clang: error: linker command failed with exit code 1 (use -v to see invocation)
The text was updated successfully, but these errors were encountered: