So, I'm learning all about writing plugins for Unity using various tutorials online and the Live Training video on YouTube. I've successfully had my very simple plugin work by placing the .mm and .h files directly into the Assets/plugins/iOS directory. So, I thought I'd go ahead and try something only slightly more complicated and reworked my plugin into a .a file. The .a file is, again, sitting in the Assets/plugins/iOS directory, I build my Unity project, and the Xcode project is generated. I hook up my device and build the project, but I'm met with the following:
ld: warning: ignoring file /path/to/my/plugin/libUnityPlugin.a, file was built for archive which is not the architecture being linked (armv7)
So, I went ahead and compared the build settings of my plugin Xcode project with the build settings (in particular, the Architectures portion)
----------
----------
of the Xcode project that was generated by Unity. They're the same:
**Unity's Xcode Project**
![alt text][1]
**Plugin's Xcode Project**
![alt text][2]
[1]: /storage/temp/64682-unity-xcode-proj.png
[2]: /storage/temp/64683-plugin-xcode-proj.png
I've tried fiddling with the Architecture settings of my plugin a few times and tried again, but I'm still getting similar compile errors. Any ideas on how to remedy? Thanks in advance for any help!
↧