我尝试将我的应用程序上传到iTunes Connect resp.AppStore并收到以下错误:
无法找到或生成匹配的签名资产
Xcode试图找到或生成匹配的签名资产,但由于以下问题而未能这样做.
缺少iOS发布签名身份... Xcode可以为您请求一个.
在我设置新的开发机器之前,通过Xcode 7将开发人员帐户从旧机器导出到新机器.
我该怎么做才能解决这个问题?
我在macOS Sierra上的Xcode 8上遇到了严重的问题.当我尝试构建我的应用程序时,我得到以下问题.
CodeSign /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp.app
cd /Users/me/Desktop/MyAppFolder1/MyAppFolder2/MyAppxcode
export CODESIGN_ALLOCATE=/Users/me/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Users/me/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/me/Downloads/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "-"
/usr/bin/codesign --force --sign - --timestamp=none /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp.app
/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
然后我在终端上做了https://forums.developer.apple.com/thread/48905,如下所示,它有效.但是一旦我清理干净,问题又回来了.
cd /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp
ls -al@ *
xattr -c *
Run Code Online (Sandbox Code Playgroud)
并且此解决方案不适用于具有以下问题的存档.它有什么解决方案吗?
CodeSign /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app
cd /Users/me/Desktop/MyAppFolder1/MyAppFolder2/MyAppxcode
export CODESIGN_ALLOCATE=/Users/me/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Users/me/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/me/Downloads/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
Signing Identity: "iPhone Developer: My Name (**********)"
Provisioning Profile: "iOS Team Provisioning Profile: com.**********.*********"
(********-****-****-****-************)
/usr/bin/codesign --force --sign **************************************** --entitlements /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Release-iphoneos/MyApp.build/MyApp.app.xcent --timestamp=none /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app …Run Code Online (Sandbox Code Playgroud) 我知道这里有其他问题,但我已经按照他们所有的解决方案但最终仍然会收到此错误消息.
我有一个有效的Apple Developer帐户,程序处于活动状态.
我尝试使用托管和非托管配置使用新/新捆绑ID(可以重新创建配置文件).
我试过这个:在调试模式下找不到此可执行文件的有效配置文件
我已从手机中删除了该应用的任何旧版本.
我已确认开发人员门户网站上的设备ID与Xcode中的相同(对于手动配置配置文件管理也很有用)
我甚至尝试了另一个开发者ID,我已经完全绝望,但出现了同样的错误.
在使用我的有效分发证书构建发布方案时,我甚至会收到此错误.
我花了很多时间试图解决这个问题,现在我希望别人感受到我的痛苦并且实际上解决了这个问题.
更新:添加截图以获得实用性
更新2:我放弃了尝试解决这个问题,我创建了一个新项目并将源文件复制到新项目中,现在我已经开始工作了.很明显,项目配置/设置文件中的某些内容在之前的项目中以某种方式被破坏,没有明显的修复可用.将这个问题保持开放,也许有人最终会有一个解决方案.我有一个旧的"非工作"项目,所以将继续尝试那些只是为了好奇.
在此错误消息之前,将显示Build Succeeded.
所以Xcode 8最近发布了,我仍然不确定究竟是什么原因造成了这个问题(可能只是因为它是Xcode的beta版本,或者我可能在某种程度上做错了什么).
手头的问题是我正在尝试创建一个新的SceneKit应用程序,而我正在使用.scn文件.
我在"hero.scnassets"中创建了一个.scn文件"hero.scn",并在hero.scnassets文件夹中提供了一个名为"heroTexture.png"的.png文件
Xcode 8.0 beta 1通常为"GameViewController.swift"文件中的此项目提供的代码编辑如下:
原始代码:
...
let scene = SCNScene(named: "art.scnassets/ship.scn")!
...
let ship = scene.rootNode.childNode(withName: "ship", recursively: true)!
ship.run(SCNAction.repeatForever(SCNAction.rotateBy(x: 0, y: 2, z: 0, duration: 1)))
Run Code Online (Sandbox Code Playgroud)
编辑代码:
...
let scene = SCNScene(named: "hero.scnassets/hero.scn")!
...
let hero = scene.rootNode.childNode(withName: "hero", recursively: true)!
hero.run(SCNAction.repeatForever(SCNAction.rotateBy(x: 0, y: 2, z: 0, duration: 1)))
Run Code Online (Sandbox Code Playgroud)
收到错误:
.../Xapp.app: resource fork, finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
问题结论:
当我所做的只是替换文件时,为什么我会收到签名错误?
旁注:我知道如何让代码签名问题消失,但这涉及重新启动整个项目(我不介意).然而,我遇到的问题是每当我更改文件时,我都会收到此错误.
通常这是我第一次尝试发布时出现:
app/Japanese 5/iOS/bin/iPhone/Debug/Japanese.app: resource fork,
Finder information, or similar detritus not allowed (Japanese.iOS)
Run Code Online (Sandbox Code Playgroud)
我的解决方案总是做一个干净的所有,然后再试一次.所以让我好奇.清洁为什么每次都解决问题?
有谁知道为什么会发生这种情况以及我能做些什么来使它不会发生?
ERROR ITMS-90022: "Missing required icon file. The bundle does not
contain an app icon for iPhone / iPod Touch of exactly '120x120'
pixels, in .png format for iOS versions >= 7.0."
Run Code Online (Sandbox Code Playgroud)
WARNING ITMS-90704: "Missing Marketing Icon. iOS Apps must include a
1024x1024px Marketing Icon in PNG format. Apps that do not include the
Marketing Icon cannot be submitted for App Review or Beta App Review."
Run Code Online (Sandbox Code Playgroud)
我在xcassets文件的所有字段中设置了适当的图像(PNG格式).
但是出现了一个错误和警告.
环境
嘿家伙刚刚更新,马上得到这个错误."错误:发生了加密验证失败."
有任何想法吗?
编辑:我有iOS 10
我在Xcode 8中运行旧项目时收到错误.相同的项目在Xcode 7中完全流动.
我也应用以下链接中提到的解决方案
但无法解决它.我还创建了新证书,Bundle Identifier和相应的配置文件,但结果相同.
将 Xamarin.Forms 应用程序部署到运行 iOS 12.1.4 的物理 iOS 设备时,我遇到此错误:资源叉、Finder 信息或类似的碎屑不允许
因此,该应用程序无法部署到设备上。
这是一个 Flutter 项目。我为 dev 和 prod 使用了 Flavor 和两个不同的主文件。
在实际设备上运行时收到此错误消息。我没有检查模拟器。我该如何解决这个问题?
我试图用这种方式解决这个问题。但不工作。我不这样做是正确的方式。我开始进行ios开发。/sf/answers/2776733991/
我也试过这种方式,我在ios文件夹中
xattr -lr pwd然后 xattr -cr pwd
错误
CodeSign /Users/myName/Library/Developer/Xcode/DerivedData/Runner-eqlnuvcbgrvptadbnflmaqpmnpuk/Build/Products/Debug-dev-iphoneos/Demo\ app\ Dev.app (in target 'Runner' from project 'Runner')
cd /Users/myName/AndroidStudioProjects/demo_app/ios
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "Apple Development: My Name (3YT9RVYQUA)"
Provisioning Profile: "iOS Team Provisioning Profile: com.demo.demo"
(f510aq0c-122c-3d99-c947-c2440s4bd06d)
/usr/bin/codesign --force --sign F342223C2F11B79BD9B0B991D9E324B2A3F41B37 --entitlements /Users/myName/Library/Developer/Xcode/DerivedData/Runner-eqlnuvcbgrvptadbnflmaqpmnpuk/Build/Intermediates.noindex/Runner.build/Debug-dev-iphoneos/Runner.build/demo\ app\ Dev.app.xcent --timestamp=none /Users/myName/Library/Developer/Xcode/DerivedData/Runner-eqlnuvcbgrvptadbnflmaqpmnpuk/Build/Products/Debug-dev-iphoneos/demo\ app\ Dev.app
/Users/myName/Library/Developer/Xcode/DerivedData/Runner-eqlnuvcbgrvptadbnflmaqpmnpuk/Build/Products/Debug-dev-iphoneos/demo app Dev.app: resource fork, Finder information, or similar detritus not allowed
Command CodeSign failed with a nonzero …Run Code Online (Sandbox Code Playgroud) ios ×8
xcode ×5
macos ×3
swift ×3
xamarin ×2
xcode8 ×2
archive ×1
build ×1
code-signing ×1
dart ×1
flutter ×1
macos-sierra ×1
scenekit ×1
testflight ×1
xamarin.ios ×1
xcode9 ×1