升级到14.3在真机上运行报错如下:
/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
解决方法:
在Podfile中的最后一个end出添加下面代码
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
end
end
end
end
添加玩如图:
上述代码添加完需要pod install
这样能够在真机上运行 但是当打包到App Store时又会报 如下错误
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/c2cb9645-dafc-11ed-aa26-6ec1e3b3f7b3/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
解决方法如下:
找到项目所在路径/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh
把 source="$(readlink "${source}")"修改成source="$(readlink -f "${source}")"
如图
这样打包到App Store就OK了