我认为这已成为过去,但在构建调试时,我在某种程度上再次遇到CodeSign的一些奇怪问题。
我已正确设置了签名身份和配置文件。我可以使用相同的身份/配置组合构建另一个项目,没有任何问题。
CodeSign基本上失败并显示消息"未找到任何身份":
CodeSign /Users/hans/Library/Developer/Xcode/DerivedData/SpeedBoxHD-enwifuhucowlkvggoqexfgsyhnst/Build/Products/Debug-iphoneos/SpeedBox\ Free\ copy.app
cd /Users/hans/sync/workspace/iPhone/SpeedBox/SpeedBoxHD
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "iPhone Developer: Hans Schneider (YR68TPB9AQ)"
Provisioning Profile: "iOSTeam Provisioning Profile: *"
(0b0bdc0d-e25f-4996-a41a-c44091b7372e)
/usr/bin/codesign --force --sign 5A2FC3B3A95FBA926C30606701B59592910FC159 --entitlements /Users/hans/Library/Developer/Xcode/DerivedData/SpeedBoxHD-enwifuhucowlkvggoqexfgsyhnst/Build/Intermediates/SpeedBoxHD.build/Debug-iphoneos/Speed\ Box\ Free\ copy.build/SpeedBox\ Free\ copy.app.xcent /Users/hans/Library/Developer/Xcode/DerivedData/SpeedBoxHD-enwifuhucowlkvggoqexfgsyhnst/Build/Products/Debug-iphoneos/SpeedBox\ Free\ copy.app
5A2FC3B3A95FBA926C30606701B59592910FC159: no identity found
Command /usr/bin/codesign failed with exit code 1
这个哈希(" 5A2 ......")来自哪里?这是根据所选的身份和应用计算的吗?配置文件的哈希是什么意思(" 0b0 ......")是什么意思?它与构建的项目不同。
以下是使用相同设置构建的项目的CodeSign输出:
usr/sbin:/sbin"
Signing Identity: "iPhone Developer: Hans Schneider (YR68TPB9AQ)"
Provisioning Profile: "iOSTeam Provisioning Profile: *"
(bf0b4cbb-a0b8-41a9-9ed6-c9e9a85ca242)
/usr/bin/codesign --force --sign 0C05CF8475D17E3C59F69BFF07A30D1B6FE16FBE --entitlements /Users/hans/Library/Developer/Xcode/DerivedData/DoggyCam-dtumjmdbsaagfvgykfclguwaqeds/Build/Intermediates/DoggyCam.build/Debug-iphoneos/DoggyCam.build/DoggyCam.app.xcent /Users/hans/Library/Developer/Xcode/DerivedData/DoggyCam-dtumjmdbsaagfvgykfclguwaqeds/Build/Products/Debug-iphoneos/DoggyCam.app
/Users/hans/Library/Developer/Xcode/DerivedData/DoggyCam-dtumjmdbsaagfvgykfclguwaqeds/Build/Products/Debug-iphoneos/DoggyCam.app: replacing existing signature
我知道在这里发布这个问题有点远,因为你可能需要深入了解这些设置,但我已经开展了好几天了,似乎无法找到解决方案。没有构建的项目是带有一些Swift代码的Objective C.这可能是问题吗?不幸的是,我不知道项目在什么时候无法构建,它一定是在我安装Xcode 6.3.1的时候......但是...
目前我唯一的想法是创建一个新的签名身份并尝试使用这个...