刚开始使用fastlane(v2.118.1),立即遇到了构建问题。
这是我的Fastfile中的通道:
lane :beta do
build_app(workspace: "projectname.xcworkspace", scheme: "schemename")
end
这是编辑过的Appfile:
app_identifier("redacted")
apple_id("redacted")
itc_team_id("redacted")
team_id("redacted")
编辑值有效。运行构建并生成了构建,但是显示以下错误:
INFO [2019-03-25 10:56:28.23]: ------------------------------
INFO [2019-03-25 10:56:28.23]: --- Step: default_platform ---
INFO [2019-03-25 10:56:28.23]: ------------------------------
INFO [2019-03-25 10:56:28.23]: Driving the lane 'ios beta'
INFO [2019-03-25 10:56:28.23]: -----------------------
INFO [2019-03-25 10:56:28.23]: --- Step: build_app ---
INFO [2019-03-25 10:56:28.23]: -----------------------
INFO [2019-03-25 10:56:28.28]: $ xcodebuild -showBuildSettings -workspace projectname.xcworkspace -scheme schemename
DEBUG [2019-03-25 10:56:29.63]: Parsing project file '/Users/username/Documents/somefolder/Users/username/Documents/somefolder/projectname.xcodeproj' to find selected provisioning profiles
DEBUG [2019-03-25 10:56:29.63]: Finding provision profiles for 'Release'
ERROR [2019-03-25 10:56:29.63]: Couldn't automatically detect the provisioning profile mapping
ERROR [2019-03-25 10:56:29.63]: Since Xcode 9 you need to provide an explicit mapping of what
ERROR [2019-03-25 10:56:29.63]: provisioning profile to use for each target of your app
ERROR [2019-03-25 10:56:29.63]: [Xcodeproj] Unable to open '/Users/username/Documents/somefolder/Users/username/Documents/somefolder/projectname.xcodeproj' because it doesn't exist.
注意:路径名两次包含xcodeproj文件的路径:'/Users/username/Documents/somefolder/Users/username/Documents/somefolder/projectname.xcodeproj'
使用Xcode IDE构建和归档时没有错误,我可以将构建提交到TestFlight而没有错误。此问题仅在快速通道中发生。
如何诊断该路径在哪里加倍?
答案 0 :(得分:0)
正如发布的here一样,问题是xcworkspace内容已损坏,并且包含了xcodeproj文件的原始路径并将其标记为相对于组。我可以通过使用TextEdit修改路径来编辑xcworkspace / contents.xcworkspacedata来解决此问题。