- Home /
2 Apple Mach-O Linker Errors (see edit #3)
Hello! My problem is part Xcode and part Player settings related, I really hope that somebody is able to help me! :)
I was ready to submit my app to the App Store but an error occurred when I tried to do so. It said that "all apps have to support 64 bit format from June 1st onward" or something similar. I then changed the changed architectures in Xcode (build settings) to Standard architectures (armv7, arm64). I also changed Scripting Backend to IL2CPP, checked "Use IL2CPP precompiled header" and changed Architectures to universal in the Unity Player settings.
At this point I think I deleted some .mm, .m & .h files, but only unused ones like soomla.
After this I tried the game and it crashed when I collided with a wall, which triggers Handheld.Vibrate(); The error said (in Xcode) that there was bad access to some line.
Then I went to sleep...
Today when I woke up the game didn't build at all. Xcode had several semantic issues, something like "xxx1 doesn't exist, did you mean xxx2"? Fixing them fixed that problem but created two new ones, so that was weird.
I recovered the deleted files from the trash and now I get one error (in Bulk_Arrays_10.cpp) "Use of undeclared identifier 'WaitHandleU5BU5D_t4552_StaticFields'"
Is there an easy fix to get the game working again? Validating project settings in Xcode doesn't help.
Thanks a lot in advance!
.
Edit: Changed .NET 2.0 subset to .NET 2.0 in the player settings but it didn't solve the problem.
Edit 2: I replaced the build with a new one and got the same error (in Bulk_Arrays_10.cpp)
"Use of undeclared identifier 'WaitHandleU5BU5D_t4552_StaticFields'"
EDIT 3: When building on Xcode I now get 2 Apple Mach-O Linker Errors.
Undefined symbols for architecture armv7: "OBJC_CLASS$_OneSignal", referenced from: objc-class-ref in OneSignalUnityRuntime.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Edit 4: Clearing DerivedData folder didn't solve the problem.
Answer by DiebeImDunkeln · Jul 03, 2015 at 04:16 PM
I had a similar problem. Make shure you use in Unity IL2CPP instead on Mono in the player settings and set it to .NET 2.0 instead of ".NET 2.0 subset"
$$anonymous$$akes sense, but I still get an error that says:
"Use of undeclared identifier 'WaitHandleU5BU5D_t4552_StaticFields'"
Edit: Xcode gave a fix-it option, but 18(!) new errors appeared, all semantic issues.
For example: "Use of undeclared identifier 'Exception_ctor_m1309'; did you mean 'Exception_ctor_m5510'?" & "$$anonymous$$ class name 'Exception_t163'; did you mean 'Exception_t51'?"
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Using interfaces in C# 4 Answers
Unity + XCode Problem (really wierd) 0 Answers