XcodePatch
XcodePatch copied to clipboard
Build error for iOS target
I run all step. can run Xcode. but not build iOS target
error: failed to read asset tags: The command `(cd /Users/hanson/Desktop/aaaabb && /Applications/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 /Users/hanson/Desktop/aaaabb/aaaabb/Assets.xcassets)` terminated with uncaught signal 6. The command's standard error was:
dyld[8493]: Library not loaded: @rpath/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/ibtoold
Reason: tried: '/Applications/Xcode.app/Contents/Developer/usr/bin/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file), '/Applications/Xcode.app/Contents/Developer/usr/bin/../../../Frameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (code signature in <4E25B0D6-C059-3B91-8642-F965732139D4> '/Applications/Xcode.app/Contents/Frameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file), '/Applications/Xcode.app/Contents/Developer/usr/bin/../../../PlugIns/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file), '/Applications/Xcode.app/Contents/Developer/usr/bin/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file), '/Applications/Xcode.app/Contents/Developer/usr/bin/../../../Frameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (code signature in <4E25B0D6-C059-3B91-8642-F965732139D4> '/Applications/Xcode.app/Contents/Frameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file), '/Applications/Xcode.app/Contents/Developer/usr/bin/../../../PlugIns/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file), '/Library/Frameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file), '/System/Library/Frameworks/AssetCatalogFoundation.framework/Versions/A/AssetCatalogFoundation' (no such file)
(in target 'aaaabb' from project 'aaaabb')
如果是 M1 芯片,编译时候选第一个。如果是 Intel 的芯片,编译选第二个。
Looks irrelevant with the patch library, there may be something wrong with your re-sign script. How did you re-sign your Xcode?
I used the following command
xattr -r -d com.apple.quarantine /Users/hanson/Desktop/Xcode.app
codesign -f -s - --deep /Users/hanson/Desktop/Xcode.app
I used the following command
xattr -r -d com.apple.quarantine /Users/hanson/Desktop/Xcode.app codesign -f -s - --deep /Users/hanson/Desktop/Xcode.app
I don't think that can re-sign Xcode correctly, see the method I suggested in README.