A
A
allaga2019-06-25 12:18:44
Swift
allaga, 2019-06-25 12:18:44

Why doesn't the CLI project start with the SwiftyJSON library?

Hey!
I'm trying to dock the SwiftyJSON library version 4.3.0 to the Command Line Tool (macOS) project type via CocoaPods. But when I open a project file with the .xcworkspace extension and start the build process, a warning pops up:

Showing Recent Messages
:-1: Not running swift-stdlib-tool: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES is enabled, but the product type 'com.apple.product-type.tool' is not a wrapper type. (in target 'parseJSON')

Also in the console instead of "Hello, world" the following message appears:
dyld: Library not loaded: @rpath/SwiftyJSON.framework/Versions/A/SwiftyJSON
Referenced from: /Users/allaga/Library/Developer/Xcode/DerivedData/parseJSON-dbgvxwkgmkkxaudkdpoyihygryke/Build/Products/Debug/parseJSON
Reason: image not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2019-06-25
@allaga

It is not clear why SwiftyJSON is needed in 2019, but try changing the build system to Legacy Build System in the xcworkspace settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question