由于没有选定的开发团队,这两个项目都不会使用 Xcode 14 beta 进行构建。两次都是带有蓝色乐高图标的目标(我想是捆绑包?)
似乎在早期版本的 Xcode 中,团队也没有设置,但它并没有导致构建错误。
在这里选择自己的开发团队会不会是错误的?
dom*_*mfz 121
podfile 中的这个post_install脚本修复了它。看来组建自己的开发团队是有必要的。将您的团队 ID 替换为您项目的 TeamID。
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
Run Code Online (Sandbox Code Playgroud)
小智 105
我更喜欢下面的代码,这样您就不需要签署每个单独的包,并且当您使用多个签名团队时这很容易。
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
Run Code Online (Sandbox Code Playgroud)
Sh_*_*han 18
如果有人需要知道 PodFile 的正确结构
# Uncomment the next line to define a global platform for your project
# platform :ios, '12.0'
target 'APPTarget' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Your packages goes here
end
# Disable signing for pods
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
33987 次 |
| 最近记录: |