Code signing on copy only works with "A" versioned frameworks
| Originator: | jalkut | ||
| Number: | rdar://24260778 | Date Originated: | 20-Jan-2016 01:27 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | |
| Classification: | Reproducible: |
Summary:
If a framework is included among the copied frameworks for a "Copy Files" phase in a target, and the "Code Sign on Copy" option is checked, the build will fail when the automated code signing occurs, because it is apparently hardcoded to look for the pertinent binary in the "A" versioned folder of the framework.
Steps to Reproduce:
1. Open attached BundledBee.xcodeproj
2. Build.
Expected Results:
The build should succeed, resulting in an app BundledBee.app with embedded framework Bee.framework.
Actual Results:
The build fails with code signing error:
CodeSign /Volumes/Data/daniel/Library/Developer/Xcode/DerivedData/BundledBee-aopieycowfmikpbkgsvuijkrklwl/Build/Products/Debug/BundledBee.app/Contents/Frameworks/Bee.framework/Versions/A
cd "/Volumes/Data/daniel/Sources-Modern/Diversions/Bug Reports/BundledBee"
export CODESIGN_ALLOCATE=/Volumes/Data/daniel/Applications/XcodeNewer/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "-"
/usr/bin/codesign --force --sign - --preserve-metadata=identifier,entitlements --timestamp=none /Volumes/Data/daniel/Library/Developer/Xcode/DerivedData/BundledBee-aopieycowfmikpbkgsvuijkrklwl/Build/Products/Debug/BundledBee.app/Contents/Frameworks/Bee.framework/Versions/A
/Volumes/Data/daniel/Library/Developer/Xcode/DerivedData/BundledBee-aopieycowfmikpbkgsvuijkrklwl/Build/Products/Debug/BundledBee.app/Contents/Frameworks/Bee.framework/Versions/A: No such file or directory
Command /usr/bin/codesign failed with exit code 1
Version:
Version 7.3 beta (7D111g)
Notes:
Configuration:
Attachments:
'BundledBee.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!