Communication error: unknown option symbol `X 'in: -Xlinker

The following linker command results in an error below. This is a build for the purpose of the simulator in Xcode for iOS. it is unclear what even provides Xlinker arguments through Xcode. Any thoughts on how I can find a solution here?

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / SDKs / iPhoneSimulator7.1.sdk -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -o libxxx.a

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option symbol `X 'in: -Xlinker

(note: this error seems to come from nowhere. The same project file was created ok days ago).

+6
source share
1 answer

Try adding use_frameworks! into your subfile and run pod install .

This should solve the problem.

0
source

Source: https://habr.com/ru/post/973195/


All Articles