dyld: Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib
toshi0383 opened this issue · comments
Environment
macOS Sierra 10.12.4 (16E195)
Xcode 8.3 (8E162) (Confirmed repro on Xcode8.2.1 too)
Carthage 0.20.1
Reproduce Step
carthage update --platform tvOS
- Add
carthage copy-frameworks
build phase - Open App.xcodeproj and Cmd + R, this runs with no problems.
- Close xcodeproj and Create a new xcworkspace including the App and TVMLKitchen xcodeprojs.
- Open the xcworkspace and Cmd + R, the error occurs.
Log
dyld: Library not loaded: @rpath/libswiftSwiftOnoneSupport.dylib
Referenced from: /Users/toshi0383/Library/Developer/Xcode/DerivedData/HelloKitchen-ejgwzgjuarttagdecndevauvhuqx/Build/Products/Debug-appletvsimulator/Himotoki.framework/TVMLKitchen
Reason: image not found
Solution
Add ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
to buildSettings which is currently NO.