Hmm, I tried removing iOSPostProcessBuild.cs, still get the error. In fact I remove the whole plugin, cleared build directory in Xcode and did a clean and I’m still getting references to the iOSUtils library. Is there a setting in Unity where this library is being specified. At this time I can’t build for iOS device.
By the way I’m running Unity 5.6.5f1 (64bit) on Mac.
Edit: Ok I created a whole new directory for a new build and that worked. As in I was able to compile for the device without the plugin installed. I’ll try removing the iOS…cs file with a new dir and see if it does the trick. Any idea why this is even happening, shouldn’t it build fine for iOS by moving the Plugins dir as the manual says?
Edit2: When I remove the iOSPostProcessBuild.cs and the Plugins dir I get these errors in Xcode:
Undefined symbols for architecture arm64:
"__AddImageToGallery", referenced from:
_iOsUtils__AddImageToGallery_m2462700307 in Bulk_Assembly-CSharp_0.o
_iOsUtils_AddImageToGallery_m3420591291 in Bulk_Assembly-CSharp_0.o
_TextureExporter_ExportToFile_m3900510639 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _iOsUtils__AddImageToGallery_m2462700307)
"__HasGalleryAuthorization", referenced from:
_RequestAuthAtStartup_Start_m2530595208 in Bulk_Assembly-CSharp_0.o
_iOsUtils_HasGalleryAuthorization_m2198952795 in Bulk_Assembly-CSharp_0.o
_iOsUtils__HasGalleryAuthorization_m1930721756 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _iOsUtils__HasGalleryAuthorization_m1930721756)
"__RequestGalleryAuthorization", referenced from:
_RequestAuthAtStartup_Start_m2530595208 in Bulk_Assembly-CSharp_0.o
_iOsUtils_RequestGalleryAuthorization_m512474017 in Bulk_Assembly-CSharp_0.o
_iOsUtils__RequestGalleryAuthorization_m4140012953 in Bulk_Assembly-CSharp_0.o
(maybe you meant: _iOsUtils__RequestGalleryAuthorization_m4140012953)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I just want to be able to build for the iOS device, if I need the Utils lib for now I’m OK with that, I’ll remove it when I’m doing a final build, but when I include it I get the other error I stated before. Is this working for you and just not working for me, or is it a bug?
Edit3: I think using a new dir made a difference, with the plugin installed I now get the following error:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_PHPhotoLibrary", referenced from:
objc-class-ref in iOSUtils.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I don’t have the time to be debugging this. Are you not seeing these errors?
I have to tell you. In the editor I’m really impressed with this s/w but compiling for device is completely ruining the experience. At this point I don’t know if I’m doing something wrong or if there is an issue.