菜鸟教程小白 发表于 2022-12-12 16:06:28

iphone - iOS 代码签名错误


                                            <p><p>我正在尝试在我的 iPhone 上安装和运行一个基本的 iOS 应用程序。我尝试构建和安装时遇到的错误是:</p>

<pre><code>CodeSign /Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app
cd /Users/jacob/code/iphone/newProject
setenv PATH &#34;/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin&#34;
setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s &#34;iPhone Developer: Jacob LYLES (P4AAK856G5)&#34; --resource-rules=/Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app/ResourceRules.plist --entitlements /Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Intermediates/newProject.build/Debug-iphoneos/newProject.build/newProject.xcent /Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app

/Users/jacob/Library/Developer/Xcode/DerivedData/newProject-bttbyexujwyetreshrllqrqmpouw/Build/Products/Debug-iphoneos/newProject.app: The operation was cancelled by the user.
Command /usr/bin/codesign failed with exit code 1
</code></pre>

<p>我已经删除并重新下载了我所有的配置文件和证书等等一百万次。任何帮助深表感谢。我可以根据需要提供更多信息。我在 XCode 4.0 上使用 iOS 4.3 SDK。</p>

<p>编辑:请记住,项目在不需要代码签名的模拟器上编译、安装和运行完美。 </p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>请检查 info.plist 中的包标识符,如果它也正确,请重新启动您的设备和机器,然后进行构建并选择正确版本的 SDK,它可能会工作。 </p></p>
                                   
                                                <p style="font-size: 20px;">关于iphone - iOS 代码签名错误,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/5619874/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/5619874/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: iphone - iOS 代码签名错误