Open 349989153 opened 3 years ago
2、pod install/pod update的时候,报The 'Pods-app_ngjb' target has libraries with conflicting names: libcrypto.a and libssl.a.
解决: https://github.com/lovebing/react-native-baidu-map-examples
常见问题 The 'Pods-xx' target has libraries with conflicting names: libcrypto.a and libssl.a. 解决方法:
pod cache list | grep BaiduMapKit 删除 pod 缓存中的 BaiduMapKit/thirdlibs/ 下的文件,重新执行 pod install
ld: library not found for -lcrypto 根据前面提到的方法删除 百度地图自带的 libcrypto.a 和 libssl.a,使用 OpenSSL-Universal 代替
3.duplicate symbol '_OBJCCLASS$_RCTClearCacheModule' in: /Users/luyang/Library/Developer/Xcode/DerivedData/app_ngjb-ctypizkktnyibsgeyjpakryvsfly/Build/Intermediates.noindex/app_ngjb.build/Debug-iphonesimulator/app_ngjb.build/Objects-normal/x86_64/RCTClearCacheModule.o /Users/luyang/Library/Developer/Xcode/DerivedData/app_ngjb-ctypizkktnyibsgeyjpakryvsfly/Build/Products/Debug-iphonesimulator/RNClearCache/libRNClearCache.a(RCTClearCacheModule.o) duplicate symbol '_OBJCMETACLASS$_RCTClearCacheModule' in: /Users/luyang/Library/Developer/Xcode/DerivedData/app_ngjb-ctypizkktnyibsgeyjpakryvsfly/Build/Intermediates.noindex/app_ngjb.build/Debug-iphonesimulator/app_ngjb.build/Objects-normal/x86_64/RCTClearCacheModule.o /Users/luyang/Library/Developer/Xcode/DerivedData/app_ngjb-ctypizkktnyibsgeyjpakryvsfly/Build/Products/Debug-iphonesimulator/RNClearCache/libRNClearCache.a(RCTClearCacheModule.o) duplicate symbol '_OBJCIVAR$_RCTClearCacheModule._bridge' in: /Users/luyang/Library/Developer/Xcode/DerivedData/app_ngjb-ctypizkktnyibsgeyjpakryvsfly/Build/Intermediates.noindex/app_ngjb.build/Debug-iphonesimulator/app_ngjb.build/Objects-normal/x86_64/RCTClearCacheModule.o /Users/luyang/Library/Developer/Xcode/DerivedData/app_ngjb-ctypizkktnyibsgeyjpakryvsfly/Build/Products/Debug-iphonesimulator/RNClearCache/libRNClearCache.a(RCTClearCacheModule.o)
1.pod install/pod update的时候,报react-native-clear-cache没有podspec
解决:参考 https://github.com/17554265585/react-native-clear-cache/blob/master/RNClearCache.podspec,在node_modules/下找到react-native-clear-cache ,新增一个文件叫RNClearCache.podspec,然后贴以下内容: