Using a class created in an iOS project in a Mac app -
I have a class created in the iOS app that I want to use in the Mac app, both projects are in the same workspace I simply added the top of the iOS class to the Mac app project in a file. In this way, Mac App knows about Class. When creating the Mac app, I get the following linker error:
Symbol not available for architecture (s) x86_64
Any help would be appreciated.
=========================================== ======= ========
Well, I resolved my problem immediately after posting it. Hopefully this will be helpful for anyone running on this issue.
I only added a link to the iOS class header file in the Mac App Project. When I even got the iOS class I added a link to the file, then it started doing everything.
It is understandable that the Mac app also needs to compile the implementation of the class.
You must add the source file together with the header (usually a .m, .mm, Or .CPP file) otherwise the class does not compile in the Mac app declares but it does define , so you get an error.
Comments
Post a Comment