我们的自动构建在Jenkins上运行.构建本身在从属服务器上运行,从服务器通过SSH执行.
我收到一个错误:
00:03:25.113 [codesign-app] build/App.app: User interaction is not allowed.
Run Code Online (Sandbox Code Playgroud)
我已经尝试了迄今为止我在其他帖子中看到的所有建议:
在所有情况下,我都会得到同样的错误.
为了诊断问题,我尝试在我的本地终端上运行"security unlock-keychain"命令,发现它实际上并没有解锁钥匙串 - 如果我查看Keychain Access,锁定符号仍然存在.无论我是在命令行上传递密码还是让它提示我,都是这种情况.使用GUI解锁相同的钥匙串将提示我输入密码然后解锁.另外,如果我运行"security lock-keychain",我会在运行命令后立即看到键锁.这让我觉得解锁钥匙串实际上并不起作用.我在Lion(我们用于构建奴隶)和Mavericks(我正在开发)上遇到相同的行为.
接下来,我尝试将-v添加到所有安全命令:
list-keychains "-d" "system" "-s" "/Users/tester/.secret/App.keychain"
Listing keychains to see if it was added: ((
"/Library/Keychains/System.keychain"
))
unlock-keychain "-p" "**PASSWORD**" "/Users/tester/.secret/App.keychain"
build/App.app: User interaction is not allowed.
Run Code Online (Sandbox Code Playgroud)
从这看起来,列表 - 钥匙链似乎是不起作用的.也许都不行.:/
这里有一个类似的问题.解决方案很有趣 - 在launchctl中将"SessionCreate"设置为true.但我不是在master上构建 - 我的构建过程是从一个slave构建机器上的SSH启动的.也许有一种命令行方式可以在运行"SessionCreate"时执行launchctl正在执行的操作?
The solution on the other post with a similar title: The code signature version is no longer supported DOES NOT WORK.
I used to be able to install my app onto my phone. I have updated my phone and then I updated xCode so that I could install it to IOS 14.6, and now I get this code signature version is no longer supported error. It runs fine on the simulator but not on my phone.
I get this error …
在运行 iOS 15 的物理 iPhone 上运行 Xcode 13 项目时,我收到这条消息。Unable to install "App"如果我单击“详细信息”,我会看到以下信息(最值得注意的是The code signature version is no longer supported)。这个问题似乎发生在某些运行 Xcode 12 的人身上。但是,我运行的是 Xcode 13.2.1 和 macOS Monterey 12.1。
我的开发团队让 Xcode 自动管理签名。今天,我在 Apple 开发者控制台中编辑了我的 App ID 配置以添加“使用 Apple 登录”,并收到以下消息:Adding or removing any capabilities will invalidate any provisioning profiles that include this App ID and they must be regenerated for future use.我怀疑这是导致我的问题的原因,但不确定如何解决它。
我尝试过的事情:
--generate-entitlement-der在代码签名选项中automatically manage signing并使用新生成的配置文件Details
Unable to …Run Code Online (Sandbox Code Playgroud) 我最近将我的XCode 更新到了最新(期)13.3并正在开发一个项目,现在当我将该项目移动到其他具有MacOS Catalina 和 XCode 版本 12.3 的Mac 时。
当我尝试打开该项目时,它不断向我显示此对话
但我找到了一个解决方案,让它在较低版本的 XCode 上工作,这对其他人也有用,所以我也包括答案。
希望能帮助到你 :)