三方库也需要开发团队账号了?
Signing for "ESPullToRefresh-ESPullToRefresh" requires a development team. Select a development team in the Signing & Capabilities editor.
解决方案1
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"
end
end
end
end
解决方案2
或使用下面这种蒋Sign置为空字符:
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGN_IDENTITY'] = ''
end
end
解决方案3
终端执行sudo gem install cocoapods-pod-sign
执行bundle init,此时生成一个Gemfile文件,看输出路径Writing new Gemfile to /Users/xxx/Gemfile
修改Gemfile文件,将这两行代码复制粘贴到文件末尾
gem 'cocoapods-pod-sign'
gem 'cocoapods'
执行bundle install
,让文件的修改生效
cd 到项目目录执行pod install --verbose
Xcode14.3报错XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
Xcode 14.2版本运行一切正常,升级到14.3版本后运行报错。
XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
解决方案:
Xcode 14.3移除了arc目录,因为Xcode 14支持的最低部署目标iOS 11, 最低部署版本的系统都已经内置了ARC相关的库, 我们只需要将第三方库部署目标的iOS版本设置成和应用最低部署目标的iOS版本即可
所以在podfile文件中,增加以下内容
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'] = '11.0' #9.0
end
end
end
end
Xcode14.3报错 rsync error: some files could not be transferred (code 23)
解决方案:
找到...-frameworks.sh 文件,替换
source="[图片上传失败...(image-ace6bc-1688108445152)]
{source}")"
为
source="[图片上传失败...(image-682e43-1688108445152)]
{source}")"
xx-frameworks.sh 所在位置为:
项目所在路径/Pods/Target Support Files/Pods-xxx/Pods-xxx-frameworks.sh
网友评论