xcode Archive失败,找不到jpush-ios-3.1.1

ios
标签: #<Tag:0x00007fb8386b12d0>

(熊熊熊 ) #1

删除Podfile.lock重新pod install, 打包App时报错,如下:

ld: warning: directory not found for option ‘-L/Users/xxxx/Library/Developer/Xcode/DerivedData/xxx_ios-epmkuaqegjlgmkguiijtrpjjjvtq/Build/Intermediates.noindex/ArchiveIntermediates/xxx/BuildProductsPath/Release-iphoneos/React’
ld: library not found for -ljpush-ios-3.1.1
clang: error: linker command failed with exit code 1 (use -v to see invocation)

求助大佬


(12) #2

在 other link flag 删除你报的这个jpush-ios-3.1.1

你现在集成的什么版本


(熊熊熊 ) #3

大神,用pod集成的JPushRN,JCoreRN,之前2月前集成过,现在重新删了podfile.lock,install,没限定版本。 而且我的other link flags 没有jcore1.1.5,设置的$(inherited),-ObjC,-lc++


(熊熊熊 ) #4

package.json:“jcore-react-native”: “^1.2.10”,
“jpush-react-native”: “^2.2.11”,


(12) #5

这个有吗?链接是错误类似的参考,你报的是 3.1.1 的,找下 3.1.1


(熊熊熊 ) #6

我通过pod安装到node_modules/jpush-react-native/ios/ 有个RCTJPushModule.xcodeproj,添加到xcode项目Libraries里,只发现一个libjpush-ios-3.1.0.a


(12) #7

在 other link flag 里面有没有JPush 3.1.1 ?这里报错了应该是这里有 3.1.1 ,但是你实际集成的不是 3.1.1 版本的所以报错,你

应该就行了


(熊熊熊 ) #8

好的,谢谢,我试试


(熊熊熊 ) #9

@Lris 大佬,我又来了,昨天的问题解决了,现在还是同样的编译环境
JCoreRN底下的ld: framework not found React
clang: error: linker command failed with exit code 1 (use -v to see invocation)


(熊熊熊 ) #10

@Lris 大佬求助,错误信息:

ld: warning: directory not found for option '-F/Users/xx/Library/Developer/Xcode/DerivedData/xxx-epmkuaqegjlgmkguiijtrpjjjvtq/Build/Intermediates.noindex/ArchiveIntermediates/xxx/BuildProductsPath/Release-iphoneos/React'
ld: warning: directory not found for option '-F/Users/xx/Library/Developer/Xcode/DerivedData/xxx-epmkuaqegjlgmkguiijtrpjjjvtq/Build/Intermediates.noindex/ArchiveIntermediates/xxx/BuildProductsPath/Release-iphoneos/yoga'
ld: framework not found React
clang: error: linker command failed with exit code 1 (use -v to see invocation)