Closed radex closed 8 years ago
Thanks a lot for the problem report Radek! Sorry but I don't know how to fix this. @zoul Hi Tomáš, maybe you have any idea?
I just tried creating a fresh Xcode Swift project for an OS X app using MASShortcut via CocoaPods with the use_frameworks
flag on. The project builds just fine, I can import MASShortcut
without build errors and also creating and logging an instance of MASShortcut
works. Where could the difference be?
Very interesting. I'll try this again later in the week, but one diff could be, I'm using CocoaPods target
s to group together pods…
Sigh. I tried again, making sure to remove all of DerivedData etc, and could not reproduce the issue. Perhaps it was some botched cache (I was upgrading from 1.x after all).
Thank you very much guys!
Happy to help! 👍
If I enable framework use in CocoaPods (for Swift support), like so:
MASShortcut won't work. Trying to
#import
a header doesn't work, and importing the MASShortcut module will silently fail — will compile, but no symbols will actually be imported.I pinned down the issue to the the
MASShortcut-umbrella.h
file generated by CocoaPods:I suppose that the fact that it generates both imports to all headers automatically and also adds your import-all
Shortcut.h
confuses the compiler somehow. When I commented out that import, it works now (I can nowimport MASShortcut
in Swift, no problem). But I don't know how to fix it for everyone.