我刚刚更新了我的xcode安装以使用xcode 6.0.1,以便开始为ios8设备编译我的应用程序.出于某种原因,我无法正确签署使用以下内容生成的应用程序文件:
xcodebuild -project GrantM/GrantM.xcodeproj -configuration Release
Run Code Online (Sandbox Code Playgroud)
它编译代码,看起来很好,但运行:
/usr/bin/codesign --verify -vvvv GrantM/GrantM.app
Run Code Online (Sandbox Code Playgroud)
给我吗:
Program /usr/bin/codesign returned 1 : [GrantM/GrantM.app: resource envelope is obsolete]
Codesign check fails : GrantM/GrantM.app: resource envelope is obsolete
Run Code Online (Sandbox Code Playgroud)
使用以下命令检查代码是否已签名:/ usr/bin/codesign -dv GrantM/GrantM.app
收益:
Executable=Documents/GrantM/GrantM/GrantM.app/GrantM
Identifier=com.grantapps.GrantM
Format=bundle with Mach-O universal (armv7 (16777228:0))
CodeDirectory v=20200 size=647 flags=0x0(none) hashes=23+5 location=embedded
Signature size=4336
Signed Time=24 Sep 2014 12:54:53 pm
Info.plist entries=34
TeamIdentifier=N3KKU46JLY
Sealed Resources version=2 rules=5 files=55
Internal requirements count=1 size=180
Run Code Online (Sandbox Code Playgroud)
有没有其他人在OSX 10.9.5和xcode 6.0.1上遇到类似的问题?或者我只是有点愚蠢并做一些明显错误的事情?
另外,我能够找到在xcode中生成的应用程序的调试版本,并且可以成功签名,但它是一个调试版本,它不适用于distrobution.我甚至无法手动签署xcodebuild生成的应用程序文件.
感谢您提前提供的任何帮助或建议.
而不是去Extension Builder> Build Package ...,我想.safariextz从MyExtension.safariextension文件夹中构建一个包.
我知道我可以解压缩扩展程序xar -xf.我怀疑返回的方式包含它xar,但后来我需要做代码签名的事情,这可能涉及或可能不涉及协同设计(1).
我正面临代码问题.
我正在使用Xcode 6.0.1和Os x server 3.2.1
E79CDDB501B68E74DDF03EA4E75246A7FDF010D0: no identity found
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我尝试了Stack Overflow中所有可能的答案,但我无法解决此问题.任何人都可以帮我解决这个问题.??
错误日志如下
/usr/bin/codesign --force --sign E79CDDB501B68E74DDF03EA4E75246A7FDF010D0 --keychain /Library/Developer/XcodeServer/Keychains/Portal.keychain --resource-rules=/Library/Developer/XcodeServer/Integrations/Caches/145dbe87fd1e5d8c0544850b54f3/DerivedData/Build/Products/Debug-iphoneos/SocialCircles.app/ResourceRules.plist --entitlements /Library/Developer/XcodeServer/Integrations/Caches/145dbe887fd1e5d8c0544850b54f34c8/DerivedData/Build/Intermediates/SocialCircles.build/Debug-iphoneos/XXX.build/xxx.app.xcent /Library/Developer/XcodeServer/Integrations/Caches/145dbe887fd1e5d8c0544850b54f34c8/DerivedData/Build/Products/Debug-iphoneos/xxx.app
Run Code Online (Sandbox Code Playgroud)
我检查Library/Developer/XcodeServer/Keychains/Portal.keychain了CL.它只有
r-------- 1 _xcsbuildd _xcs 86032 Oct 15 10:21 Portal.keychain?
Run Code Online (Sandbox Code Playgroud)
我猜Portal.keychain应该有codeign,xcodebuild也是.我尝试使用seanwolter在Stack Overflow中提供的答案导入它
sudo security import "/Users/administrator/Desktop/someCertificate.p12" -P PASSWORD -k /Library/Developer/XcodeServer/Keychains/Portal.keychain -A -T /usr/bin/codesign -T /usr/bin/xcodebuild -T /usr/bin/pkgbuild
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误
security:SecKeychainItemImport:找不到指定的钥匙串.
我不知道如何解决这个问题.请帮帮我...... !!!
我试图在Jenkins上运行自动xcodebuild,但我遇到了错误
不允许用户交互.命令/ usr/bin/codesign失败,退出代码为1
我已经引用了"不允许用户交互"尝试使用codesign和其他类似线程签署OSX应用程序,但没有一个解决方案似乎能够正确地修复错误.
这是我已经尝试过的:
我已经允许所有项目访问钥匙串,并且我已经特别添加了代码签名到"始终允许"列表(在此处完成/sf/answers/1584652751/)
我已经将钥匙串设置为不通过Keychain Access的设置和命令自动锁定超时
security set-keychain-settings -t 3600 -l <KEYCHAIN>
Run Code Online (Sandbox Code Playgroud)我试过打电话
codesign --sign <CODE SIGN IDENTITY> --force ...
Run Code Online (Sandbox Code Playgroud)
在项目编译之前(更具体地说,这个解决方案/sf/answers/1414567311/),虽然这成功地构建了项目,但我认为编译前的协同设置是正确或可靠的.(编辑:从jenkins运行时也失败了)
以下是我正在执行的命令:
security unlock-keychain -p <PASSWORD> <KEYCHAIN>
xcodebuild -scheme <SCHEME> -workspace <WORKSPACE> -derivedDataPath <BUILD DIRECTORY> -configuration <CONFIGURATION> "CONFIGURATION_BUILD_DIR=<BUILD DIRECTORY>" "CODE_SIGN_IDENTITY=<CODE SIGN ID>" "PROVISIONING_PROFILE=<PROVISIONING PROFILE>" clean build
Run Code Online (Sandbox Code Playgroud)
有趣的是要在机器上构建项目使用上面的命令,但尝试通过ssh(和jenkins)运行完全相同的命令会导致错误.
在此先感谢您的帮助!
我正在使用iOS8动态框架,我自己构建并在我的iOS应用程序中链接.它在模拟器和设备上工作正常,但在尝试为其存档Release版本时,我不断收到此错误:
代码签名错误:找不到匹配的配置文件:没有任何有效的配置文件允许指定的权利:com.apple.developer.ubiquity-kvstore-identifier,keychain-access-groups,com.apple.developer.icloud-container-identifiers ,com.apple.developer.icloud-services,com.apple.security.application-groups,com.apple.developer.ubiquity-container-identifiers.CodeSign错误:SDK'iOS 8.3'中的产品类型'Framework'需要代码签名
在应用程序目标 - >构建阶段 - >嵌入框架 - >框架链接在那里,并选中"复制代码签名"复选框.
在框架目标 - >构建设置 - >我已将Provisioning Profile设置为"Automatic",对于Code Sign Identity,在Release下,我正在使用"iOS Distribution"
我有3个不同的应用程序目标,需要构建此框架.
我糊涂了:
框架是否需要在开发人员中心注册自己的AppID?
框架是否需要它自己的配置文件?
框架可以使用iOS应用目标中的相同Entitlements文件吗?
谢谢.
我习惯用以下命令签署我的应用程序
codesign --resource-rules=ResourceRules.plist -f -s "SIGNER_NAME" MYAPP.app
安装Yosemite和XCode 6.1后,它会发出以下警告:
Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
所以我试图删除"--resource-rules"但现在它给出了以下(阻塞)错误:
invalid resource specification rule(s)
有没有正确的协同设计方式?
我正在尝试使用xcode 8构建代理链.当我运行程序时,我得到了:
/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib: code signing blocked mmap() of '/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib'
Run Code Online (Sandbox Code Playgroud)
当我签署程序和库时:
codesign -s "Mac Developer: xxxx" `which proxychains`
codesign -s "Mac Developer: xxxx" /usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib
Run Code Online (Sandbox Code Playgroud)
没有错误,但当我再次运行时,它说
/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib: code signature in (/usr/local/homebrew/Cellar/proxychains-ng/4.11/lib/libproxychains4.dylib) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not
Run Code Online (Sandbox Code Playgroud)
我现在应该怎么做?我需要某种权利吗?
我想在Linux机器上签署我的iOS应用程序(Debian 5,如果重要的话).有谁知道这是否可能?(让我们不要理解为什么我要这样做,因为它特定于我的环境.)
我看到源代码在Apple的网站上进行协同编码,但在我进入杂草拉动并试图自己构建之前,我想知道是否有人知道现有的端口.
我听说代码签名并不是特定于OSX,可能存在于其他操作系统上,但苹果总是有机会根据自己的需要进行调整.我想知道一个由苹果代码签名以外的东西签名的应用程序是否可以在iOS设备上运行.
如果重要,签名的应用程序适用于企业用户,不会进入iTunes App Store.
如何验证 macOS 安装程序 pkg 文件是否已经过公证?是否有命令行工具可以执行此操作?
codesign ×10
ios ×5
macos ×5
xcode ×4
xcode6 ×2
xcodebuild ×2
code-signing ×1
command-line ×1
debian ×1
ios8 ×1
jenkins ×1
linux ×1
notarize ×1
osx-yosemite ×1
safari ×1
ssh ×1
validation ×1