Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Abacab · Jul 03, 2015 at 01:33 PM · c#xcodearchitectureplayer settings

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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"

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Abacab · Jul 03, 2015 at 04:30 PM 0
Share

$$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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

Inheritance based state machine for controls? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges