三方庫也需要開發(fā)團隊賬號了侨糟?
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
終端執(zhí)行sudo gem install cocoapods-pod-sign
執(zhí)行bundle init,此時生成一個Gemfile文件秕重,看輸出路徑Writing new Gemfile to /Users/xxx/Gemfile
修改Gemfile文件厉膀,將這兩行代碼復制粘貼到文件末尾
gem 'cocoapods-pod-sign'
gem 'cocoapods'
執(zhí)行bundle install
,讓文件的修改生效
cd 到項目目錄執(zhí)行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, 最低部署版本的系統(tǒng)都已經(jīng)內(nèi)置了ARC相關的庫, 我們只需要將第三方庫部署目標的iOS版本設置成和應用最低部署目標的iOS版本即可
所以在podfile文件中,增加以下內(nèi)容
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