[英]How to fix fastlane [Xcodeproj] Unknown object version (56). error?
I'm trying to build & archive iOS app using fastlane.我正在尝试使用 fastlane 构建和归档 iOS 应用程序。 But it always fails with this error:但它总是因以下错误而失败:
[09:49:04]: Couldn't automatically detect the provisioning profile mapping
[09:49:04]: Since Xcode 9 you need to provide an explicit mapping of what
[09:49:04]: provisioning profile to use for each target of your app
[09:49:04]: [Xcodeproj] Unknown object version (56).
This is my lane:这是我的车道:
clear_derived_data
unlock_keychain(password: keychain_password)
gym(scheme: "Staging")
Also tired this instead of a simple gym()
:也厌倦了这个而不是简单的gym()
:
build_ios_app(scheme: "Staging",
clean: true,
xcargs: "-allowProvisioningUpdates")
Tired to specifically set provisioning profile mapping, but got this contradicting error message...厌倦了专门设置供应配置文件映射,但收到了这个矛盾的错误消息......
[09:26:39]: Couldn't automatically detect the provisioning profile mapping
[09:26:39]: Since Xcode 9 you need to provide an explicit mapping of what
[09:26:39]: provisioning profile to use for each target of your app
[09:26:39]: [Xcodeproj] Unknown object version (56).
[09:26:39]: Detected provisioning profile mapping: {:"*.staging"=>"Jenkins", :"*.dev"=>"Jenkins"}
NOTE: The project doesn't use any cocoapods, only SPM.注意:该项目不使用任何 cocoapods,仅使用 SPM。 Xcode version: 14.2 Xcode 版本:14.2
This could honestly be several different issues, but most likely you will need to manually set the correct provisioning profiles in Xcode like this ( automatically manage signing is turned off ):老实说,这可能是几个不同的问题,但很可能您需要像这样在 Xcode 中手动设置正确的配置文件(自动管理签名已关闭):
I'm assuming you are using Fastlane match for signing.我假设您正在使用Fastlane match进行签名。 Also make sure to do this for each target (ie any Share Extensions, Today Widgets, etc.)还要确保为每个目标执行此操作(即任何共享扩展、今日小部件等)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.