builtin-swiftStdLibTool doesn't copy swiftSupport.dylib
| Originator: | MichalKaluzny | ||
| Number: | rdar://34254691 | Date Originated: | 05-Sep-2017 03:00 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 9 Beta 6 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When building Swift static libraries, the stdLibTool doesn’t always correctly detect the use of the Swift standard library and doesn’t copy the swiftSupport.dylib into the resulting bundle. This occurs when the static library is linked against a dynamic framework that requires the types from swiftSupport.dylib. ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES setting doesn’t seem to influence this at all. Steps to Reproduce: 1) Open attached project 2) Run test on Static scheme Expected Results: Tests succeed Actual Results: The tests fail to start with an error: 2017-09-05 14:55:21.747162+0200 xctest[93583:11564089] The bundle “Tests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. 2017-09-05 14:55:21.747408+0200 xctest[93583:11564089] (dlopen_preflight(/Users/maku/Library/Developer/Xcode/DerivedData/Static-forazcknmcjxrjfkickqivizxczg/Build/Products/Debug-iphonesimulator/Tests.xctest/Tests): Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib Referenced from: /Users/maku/Library/Developer/Xcode/DerivedData/Static-forazcknmcjxrjfkickqivizxczg/Build/Products/Debug-iphonesimulator/Dynamic.framework/Dynamic Reason: image not found) Program ended with exit code: 82 Version: 9 Beta 6 Notes:
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!