-
Notifications
You must be signed in to change notification settings - Fork 318
Impossible to use ExSwift.framework: architecture x86_64 error #23
Comments
Yes, it's Xcode: |
But I've succeded in building a custom library and then exported it as a .framework bundle. |
A Swift library? |
Yes. It's a kind of test library containing only a few classes, with some public class methods. And It works... |
I followed your instructions and created a test framework, with a simple extension, just like this:
this way the linker outputs Changing the function's return type:
compiles fine. Looks like a bug in the compiler when using the generic type I know it's ugly but if you need to use ExSwift in your project compile the sources with the rest of the project. |
Yes! You found it! Probably the compiler does not include all the Types still. |
This is Xcode bug. It's not possible to make Frameworks with extension to generic classes And it doesn't work to install this project with cocoa pods as well (because of linking error). |
1.Add ExSwift as a submodule |
I've tried everything and more to include your wonderful library, as a single .framework file, in a project of mine, but all I get is a Mach-O Linjer Error: symbol(s) not found for architecture x86_64.
All my other custom libraries included in my project compile correctly...
If I import the sources into my project everything compiles correctly. But i'd like to use the library feature instead...
Really I don't know if it's my issue or an XCode bug.
Thanks for any advice!
The text was updated successfully, but these errors were encountered: