You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a swift command line project which I would like to add a number of packages to via the Swift PM. However I am unable to build the C++ library and ObjC++ wrappers.
Essentially the structure is:
AtlasGenerator, the command line tool, which depends on MSDFGenBridge which is the ObjC wrapper around the C++ library msdfgen.
This works fine as separate targets when manually plugged into an Xcode project (as included with the library) however when running swift build, I get:
Environment
macOS Sierra, XCode 8.2 (Swift 3.0.2)
Additional Detail from JIRA
md5: ed70ce6225158c628b30720d82695ade
duplicates:
Issue Description:
In a nutshell:
The Swift PM has multiple failures building a package with C++ library and ObjC++ targets.
Steps to reproduce:
I have a swift command line project which I would like to add a number of packages to via the Swift PM. However I am unable to build the C++ library and ObjC++ wrappers.
Source at Github
Here's my Package.swift:
Essentially the structure is:
AtlasGenerator, the command line tool, which depends on MSDFGenBridge which is the ObjC wrapper around the C++ library msdfgen.
This works fine as separate targets when manually plugged into an Xcode project (as included with the library) however when running swift build, I get:
With various stdlib symbols.
Running with -Xlinker -lc++ allows the C++ library to build, but then fails to link the ObjC++ wrapper with:
Clearly it should be able to find the ObjC frameworks itself, but if I help it out with -lObjC:
Basically it can't find CoreGraphics.framework. If I supply -framework CoreGraphics to the swift command I get the message:
Which is clearly not the case because if i use -v to get the invocation then run it manually with the -framework switch it compiles fine.
The text was updated successfully, but these errors were encountered: