relocatable dylibs (e.g. embedded frameworks) are only supported on iOS 8.0 and later (@rpath/libswift_stdlib_core.dylib)

前端 未结 7 1260
说谎
说谎 2021-01-30 22:21

I just upgraded from Xcode 6 Beta 2 to Xcode Beta 3 and am now getting the following warning when building my project:

ld: warning: relocatable dylibs (e.g. embe         


        
7条回答
  •  孤城傲影
    2021-01-30 23:01

    I had this error after adding a C++ framework (DeepBelief) to a project. Adding an empty .cpp file to the project fixed it.

    I'm using Beta4, and found the answer on the DeepBelief github site:

    XCode may be skipping the standard C++ library, and that's needed by the DeepBelief.framework code. One workaround I've found is to include an empty .mm or .cpp file in the project to trick XCode into treating it as a C++ project.

提交回复
热议问题