react-native-baidumap-sdk icon indicating copy to clipboard operation
react-native-baidumap-sdk copied to clipboard

IOS xcode build失败

Open yqyily opened this issue 5 years ago • 5 comments

"react": "16.5.0", "react-native": "0.57.2", "react-native-baidumap-sdk": "^0.6.0" xcode: 10.1 macOS: Mojave Podfile文件内容: ` platform :ios, '9.0'

The target name is most likely the name of your project.

target 'bdmap_ios' do

Your 'node_modules' directory is probably in the root of your project,

but if not, adjust the :path accordingly

pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'Core', 'CxxBridge', # Include this for RN >= 0.47 'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43 'RCTText', 'RCTNetwork', 'RCTWebSocket', # Needed for debugging 'RCTAnimation', # Needed for FlatList and animations running on native UI thread # Add any other subspecs you want to use in your project ]

Explicitly include Yoga if you are using RN >= 0.42.0

pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

Third party deps podspec link

pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

pod 'react-native-baidumap-sdk', path: '../node_modules/react-native-baidumap-sdk/lib/ios' end

post_install do |installer| installer.pods_project.targets.each do |target| if target.name == "React" target.remove_from_project end end end

`

出错内容: ld: warning: directory not found for option '-L/Users/kfyang/Library/Developer/Xcode/DerivedData/bdmap_ios-ezwxnadbpjulixbyngxwxbdbrali/Build/Products/Debug-iphonesimulator/DoubleConversion' ld: warning: directory not found for option '-L/Users/kfyang/Library/Developer/Xcode/DerivedData/bdmap_ios-ezwxnadbpjulixbyngxwxbdbrali/Build/Products/Debug-iphonesimulator/Folly' ld: warning: directory not found for option '-L/Users/kfyang/Library/Developer/Xcode/DerivedData/bdmap_ios-ezwxnadbpjulixbyngxwxbdbrali/Build/Products/Debug-iphonesimulator/React' ld: warning: directory not found for option '-L/Users/kfyang/Library/Developer/Xcode/DerivedData/bdmap_ios-ezwxnadbpjulixbyngxwxbdbrali/Build/Products/Debug-iphonesimulator/glog' ld: warning: directory not found for option '-L/Users/kfyang/Library/Developer/Xcode/DerivedData/bdmap_ios-ezwxnadbpjulixbyngxwxbdbrali/Build/Products/Debug-iphonesimulator/react-native-baidumap-sdk' ld: warning: directory not found for option '-L/Users/kfyang/Library/Developer/Xcode/DerivedData/bdmap_ios-ezwxnadbpjulixbyngxwxbdbrali/Build/Products/Debug-iphonesimulator/yoga' ld: library not found for -lDoubleConversion clang: _error: linker command failed with exit code 1 (use -v to see invocation)_

yqyily avatar Mar 08 '19 08:03 yqyily

wx20190308-164224 2x

yqyily avatar Mar 08 '19 08:03 yqyily

应该是有些库没有下载,有些网络下可能要翻墙

qiuxiang avatar Mar 08 '19 10:03 qiuxiang

遇到同样的问题,RN版本0.57.1,感觉应该不是翻墙的问题,请问解决了吗?

FishingKingczj avatar May 29 '19 16:05 FishingKingczj

@yqyily 请问解决了吗?

SuGod avatar Jun 13 '19 15:06 SuGod

同样的问题,请问解决了吗

gh7800 avatar Jun 28 '19 05:06 gh7800