我不知道为什么我会收到这个错误.我相信我拥有所有正确的配置文件等.我刚刚搬到新电脑,但我也带了私钥匙链开发人员密钥.我让我的开发人员文件与Dropbox同步,所以我不需要移动Xcode项目.这是错误:
CodeSign "/Users/michaellindahl/Library/Developer/Xcode/DerivedData/Fraction_Calculator-cgirhuuvywfnsyenisucsuauquoz/Build/Products/Debug-iphoneos/Fraction Calculator Pro.app"
cd "/Users/michaellindahl/Dropbox/Xcode/lindahl studios/FractionCalculator"
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign --force --sign "iPhone Developer: Michael Lindahl (MXXX0X0XXB)" "--resource-rules=/Users/michaellindahl/Library/Developer/Xcode/DerivedData/Fraction_Calculator-cgirhuuvywfnsyenisucsuauquoz/Build/Products/Debug-iphoneos/Fraction Calculator Pro.app/ResourceRules.plist" --entitlements "/Users/michaellindahl/Library/Developer/Xcode/DerivedData/Fraction_Calculator-cgirhuuvywfnsyenisucsuauquoz/Build/Intermediates/Fraction Calculator.build/Debug-iphoneos/Fraction Calculator Pro.build/Fraction Calculator Pro.xcent" "/Users/michaellindahl/Library/Developer/Xcode/DerivedData/Fraction_Calculator-cgirhuuvywfnsyenisucsuauquoz/Build/Products/Debug-iphoneos/Fraction Calculator Pro.app"
CSSM_SignData returned: 8001094A
/Users/username/Library/Developer/Xcode/DerivedData/Fraction_Calculator-cgirhuuvywfnsyenisucsuauquoz/Build/Products/Debug-iphoneos/Fraction Calculator Pro.app: unknown error -2070=fffffffffffff7ea
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
感谢您的见解.
我刚刚创建了所有新的开发和部署证书,当我尝试在归档管理器中验证应用程序时,我遇到了这个奇怪的错误:
error: Codesign check fails : /var/folders/w_/dvqfkh916k12c5hn639qvvqw0000gn/T/oqhxIfU87c/Payload/TestUpload.app: valid on disk
/var/folders/w_/dvqfkh916k12c5hn639qvvqw0000gn/T/oqhxIfU87c/Payload/TestUpload.app: satisfies its Designated Requirement
test-requirement: code failed to satisfy specified code requirement(s)
Run Code Online (Sandbox Code Playgroud)
我已经全神贯注地看看如何解决这个错误,但似乎没有任何帮助Xcode 4.我已经按照配置文件中的设置,但它似乎没有更新为最新的Xcode 4软件(我在将存档管理器设置到位之前,已经将此与Xcode的早期版本一起使用了)
任何帮助,将不胜感激
我正在尝试使用 TeamCity 为我的 iOS 应用程序设置自动化测试。目前,我的代理正在构建,但是一旦构建了最后一个目标并运行 codesign,它就会挂起并显示以下内容:
[19:29:34][CodeSign] CodeSign /var/root/Library/Developer/Xcode/DerivedData/MyProductiOS-fgkoogiimhlbckdlbckzmqfyaoff/Build/Products/Debug-iphonesimulator/MyProductiOSUITests-Runner.app/PlugIns/MyProductiOSUITests.xctest
[19:29:34][CodeSign] cd /Users/ericmiller/.tcagent/work/f9abef315a0137d4
[19:29:34][CodeSign] export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
[19:29:34][CodeSign] export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/ericmiller/.pyenv/shims:/Users/ericmiller/.rbenv/shims:/Users/ericmiller/.pyenv/shims:/Users/ericmiller/Scripts:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/opt/local/bin"
[19:29:34][CodeSign] Signing Identity: "-"
[19:29:34][CodeSign] /usr/bin/codesign --force --sign - --timestamp=none /var/root/Library/Developer/Xcode/DerivedData/MyProductiOS-fgkoogiimhlbckdlbckzmqfyaoff/Build/Products/Debug-iphonesimulator/MyProductiOSUITests-Runner.app/PlugIns/MyProductiOSUITests.xctest
[19:29:34][CodeSign] /var/root/Library/Developer/Xcode/DerivedData/MyProductiOS-fgkoogiimhlbckdlbckzmqfyaoff/Build/Products/Debug-iphonesimulator/MyProductiOSUITests-Runner.app/PlugIns/MyProductiOSUITests.xctest: replacing existing signature
[19:31:32][CodeSign] 2017-01-22 19:31:32.279 xcodebuild[28262:86807] iOSSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.
[19:31:32][CodeSign] 2017-01-22 19:31:32.290 xcodebuild[28262:86805] iOSSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.
[19:31:32][CodeSign] 2017-01-22 19:31:32.291 xcodebuild[28262:86797] Error Domain=IDETestOperationsObserverErrorDomain Code=3 "Timed out waiting …Run Code Online (Sandbox Code Playgroud) 我正在做我的xcode项目的远程/自动构建[1] [2]并且为了签署我的应用程序,我在构建之前添加了这一行.
security unlock-keychain -p keychainpassword
Run Code Online (Sandbox Code Playgroud)
这样可以正常工作,并解锁存储证书的SYSTEM密钥链,但是它会在团队城市界面中为构建代理运行的用户公开密码,供所有人查看.
构建过程作为登录用户运行,并且是自包含的......有没有办法可以在不提供密码的情况下解锁系统/默认钥匙串?
我刚才有一个想法,如果我将证书移动到登录的钥匙串(而不是系统),我还需要用密码解锁吗?
这有可能吗?或者我应该设置一个不会造成任何损害的用户,只需构建并不做任何其他操作并公开该用户的密码.
[1]使用Teamcity,但不相关.
[2] iPhone项目,但再次无关紧要.
在Windows上,我可以右键单击文件,然后在"属性"对话框的"数字签名"选项卡上查看谁对其进行了签名.有没有类似的方法来查看哪个发布者签署了OS X应用程序,或者有关用于签名的证书的详细信息?
我知道我可以运行codesign -d -r- appname.app以查看有关证书的详细信息,并codesign -vvvv appname.app查看它是否通过验证,但这些都没有向我显示有关签名的实际证书或发布者的任何信息,只是应用程序的捆绑包标识符中的那个.
我在小牛队安装了一个brew版本的gdb.它是编码签名的,我可以在本地连接时调试没有问题:
$ gdb myprog
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation …Run Code Online (Sandbox Code Playgroud) Xcode集成同时为签名产品上的捆绑源创建".ipa".已经卡住了好几个小时.:(
我正在使用xcode-bots进行自动化testflight构建,在集成时,机器人在捆绑源处挂起如图所示,我已将我的证书和配置文件分别放在Xcode-Server钥匙串和配置文件夹文件夹中,仍然出现错误.
任何帮助,将不胜感激..:)
使用OS X 10.11签署包装shell脚本的.app无法在10.10或更低版本上进行验证.我可以在10.10和10.9上签名,并在10.9,10.10和10.11进行验证.
我在github上放了两个示例应用程序和一个脚本来显示这个.两个HelloWorld.app只在Contents/MacOS/HelloWorld中的二进制文件中有所不同.一个是shell脚本,另一个是objective-c编译.
对两个版本进行签名工作并在10.11上进行验证:
Shell脚本版本:
codesign -s "${signing_identity}" -v shell-script/HelloWorld.app
signed bundle with generic [liamsharp.helloworld]
codesign -vv shell-script/HelloWorld.app
shell-script/HelloWorld.app: valid on disk
shell-script/HelloWorld.app: satisfies its Designated Requirement
Run Code Online (Sandbox Code Playgroud)
Objective-C版本:
codesign -s "${signing_identity}" -v objective-c/HelloWorld.app
signed bundle with Mach-O thin (x86_64) [liamsharp.helloworld]
codesign -vv objective-c/HelloWorld.app
objective-c/HelloWorld.app: valid on disk
objective-c/HelloWorld.app: satisfies its Designated Requirement
Run Code Online (Sandbox Code Playgroud)
但是shell脚本版本无法在10.10和10.9上验证:
codesign -vv shell-script/HelloWorld.app
shell-script/HelloWorld.app: invalid signature (code or signature have been modified)
Run Code Online (Sandbox Code Playgroud)
我可以访问另一台10.11机器,当它签署.app时会出现同样的问题.我可以访问10.9机器,但也无法验证.
为shell脚本.app生成的_CodeSignature目录有所不同.
以下是10.10上签名的方式:
CodeDirectory
CodeRequirements
CodeResources
CodeSignature
Run Code Online (Sandbox Code Playgroud)
但是当我们在10.11上签名时,我们会收到一些额外的文
CodeDirectory
CodeRequirements
CodeRequirements-1
CodeResources …Run Code Online (Sandbox Code Playgroud) 我正在重新签名一个iOS应用程序(使用iResign),以便将其上传到App Store; 作为其中的一部分,我正在更改捆绑ID. 我只有IPA(不是源代码).
该应用程序包含第三方框架.
辞职似乎没事; 但是当我使用Application Loader上传时,我收到以下错误:
ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature
contains code signing entitlements that are not supported on iOS.
Specifically, value 'XXXXXXXXXX.COM.X.Y.Z.A' for key 'application-identifier' in
'Payload/APPNAME.app/Frameworks/FRAMEWORKNAME.framework/FRAMEWORKNAME' is not supported.
This value should be a string starting with your TEAMID, followed by a dot '.', followed by
the bundle identifier."
Run Code Online (Sandbox Code Playgroud)
(显然我已经改变了CAPS中显示的值)
我假设问题是我的entitlements.plist中的application-identifier与我的应用程序中的Bundle标识符匹配,但与框架中的Bundle标识符不匹配.
为了排除它,我在框架和应用程序上设置了相同的Bundle标识符.这确实允许我上传到应用商店; 但是当我尝试将应用程序安装到iPad上时失败并出现错误.
我是否需要为框架提供单独的权利文件?我该如何解决这个问题?
更新:只是为了排除它,我尝试使用通配符配置文件和权利plist; 但是这会产生同样的错误
My project needs the Ghostscript to do lots of tasks, so I have added the gs CLI tool into my project resource. However when I tried to notarize the project application, Xcode shows me this:
I assume that might because the ghostscript portable CLI is a 3rd-party program from the internet and which doesn't have a codesign, also it has not been enabled the hardened runtime. On the latest MacOS Mojave I have to notarize applications to avoid the gatekeeper …
codesign ×10
xcode ×5
macos ×3
ios ×2
xcodebuild ×2
code-signing ×1
compilation ×1
exit-code ×1
gdb ×1
ipa ×1
iphone ×1
objective-c ×1
ssh ×1
teamcity ×1
xcode-bots ×1
xcode8 ×1