Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
1
Question by meti314 · Jan 03, 2016 at 05:55 PM · iosbuildcloudlinker

IOS Cloud build linker problem - _OBJC_CLASS_$_NSBundleResourceRequest

Hi

I'm trying to build my game on IOS using Unity cloud build. Unfortunately i got some problems with linker and can't figure out how to fix them. This is part of the log from build:

 18376:        [xcode] Undefined symbols for architecture arm64:
 18377:        [xcode]   "_OBJC_CLASS_$_NSBundleResourceRequest", referenced from:
 18378:        [xcode]       objc-class-ref in libiPhone-lib.a(OnDemandResources.o)
 18379:        [xcode] ld: symbol(s) not found for architecture arm64


i tried to find something about that in google but have no good answer. Just before i got this error i started to use post process api to add some libraries needed by google analitics plugins (for the record did it for fix some other linker error). Maybe i made something wrong there? Maybe i have to add something similar? This is code i use

    public static void OnPostprocessBuild(BuildTarget buildTarget, string path)
     {
 #if UNITY_IOS
        
         Debug.Log("OnPostprocessBuildiOS");
         string projPath = path + "/Unity-iPhone.xcodeproj/project.pbxproj";
        
         PBXProject proj = new PBXProject ();
         proj.ReadFromString (File.ReadAllText (projPath));
        
         string target = proj.TargetGuidByName ("Unity-iPhone");
        
         // Set a custom link flag
         proj.AddBuildProperty (target, "OTHER_LDFLAGS", "-all_load");
         proj.AddBuildProperty (target, "OTHER_LDFLAGS", "-ObjC");
  
         // add frameworks
         proj.AddFrameworkToProject(target, "AdSupport.framework", true);
         proj.AddFrameworkToProject(target, "CoreData.framework", true);
         proj.AddFrameworkToProject(target, "SystemConfiguration.framework", true);        
 
         AddUsrLib(proj, target, "libz.dylib");
         AddUsrLib(proj, target, "libsqlite3.dylib");
 
         File.WriteAllText (projPath, proj.WriteToString ());
        
 
     }
 
     private static void AddUsrLib(PBXProject proj, string targetGuid, string framework)
     {
         string fileGuid = proj.AddFile("usr/lib/" + framework, "Frameworks/" + framework, PBXSourceTree.Sdk);
         proj.AddFileToBuild(targetGuid, fileGuid);
 #endif
     }

i will be glad to hear any suggestions ;-).

Comment
Add comment · Show 1
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 Dee_Lucky · Jan 08, 2016 at 09:16 AM 0
Share

I have the very same issues, I really need help as well!

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by BrianLedsworthGSN · Jan 08, 2016 at 05:04 PM

Had the same issue with an third party SDK, and I found that removing "-all_load" from OTHER_LDFLAGS fixed the compilation error. Have not tested yet to see if removing that affected anything else!

Comment
Add comment · 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
1

Answer by BrianLedsworthGSN · Jan 11, 2016 at 03:17 PM

I removed the "-all_load" linker flag and it fixed it for me.

Comment
Add comment · 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
0

Answer by meti314 · Jan 08, 2016 at 06:43 PM

Thanks :) this solved my problem :). Documentation says that this flag forces to load all forces the linker to load all object files from every archive it sees, even those without Objective-C, hopefully if it builds without them it won't affect the game :).

Comment
Add comment · 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

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

ios xcode 8 build error with google adbmob, GADMAdapterAdColony, ld: symbol(s) not found for architecture arm64 2 Answers

Build with in-app purchase 1 Answer

Distribute terrain in zones 3 Answers

put build on website to send to testers ios? 0 Answers

Cloud Build warning: Can't find custom attr constructor image 2 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