Framework BlocksKit Compiler Error

I am trying to create a framework, but it returns a compiler error. How to solve this error?

enter image description here

+4
source share
2 answers

Blockskit depends on libffi, which includes this flag in its podspec. However, it seems that it is no longer supported by the linker from version ld64-134.9 (you can check which version you are using by entering ld -v from the command line).

I sent a transfer request to fix this. In the meantime, the only solution I found was to manually remove "-Wl, -no_compact_unwind" from the generated Pods.xconfig file after each run of the "pod install" program. Btw, the problem arises regardless of whether you are linking a static library or application.

I hope that my fix will be merged soon.

** Update **

Fixed!

** Update **

Unfortunately, the BlocksKit developer did not make my decision, and the problem does not reproduce on his test machines. Thus, the best option at the moment: 1. Manually remove the flag after each update "pod" (as I mentioned above) 2. Fork BlocksKit, remove the compiler flag from it, and then update your subfile to point to your fork instead source project. You will have to manually pull out the original project to stay up to date.

+1
source

Do you associate a blockbuster with a static library? I think the linker flag -Wl, -no_compact_unwind does not work. A workaround could be to remove this flag from the xcconfig file created with cocoapods, maybe? When I do this, the error seems to disappear.

0
source

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


All Articles