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
0
Question by Hotshot10101 · Oct 24, 2018 at 06:16 PM · ioslinker

iOS LocationManager Framework not included

I make a bluetooth asset. I am now including support for iBeacon which requires the use of LocationManager on iOS.

I just built my application in 2018.2.13f and when I try to build in xcode I get a linker error that the CLLocationManager objects are missing when linking.

I click on my .mm file in the plugin folder and check the frameworks and CoreLocation is checked. In fact you can't uncheck it.

I also have included the Location Services description on the project settings for iOS.

This exactly same project builds fine when I build with Unity 5.6 and 2017 and 2018.1.6.

It does not work in 2018.2.9 or 2018.2.13.

If I manually add the CoreLocation framework to the xcode project after building from Unity then it builds fine.

Why is Unity 2018 not including the CoreLocation framework when it says it should in settings?

Comment
Add comment · Show 2
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 Hotshot10101 · Oct 29, 2018 at 01:26 PM 0
Share

This seems like a pretty important problem. Does anyone have any kind of information about it? Does this happen for anyone else?

avatar image BIMG · Feb 26, 2019 at 12:44 PM 0
Share

I have the same situation.

xCode project from Unity2018.2.5f1 is buildable, but from Unity 2018.3.5f1 not.

After some investigation of xCode project, it looks like CoreLocation is missing in some xml blocks.

I reported this problem under issue number 1131399.

As temporary workaround, I disabled test on already existing file in xCode project in XuPorter XCProject.cs file..

 //Check if there is already a file
             PBXFileReference fileReference = GetFile( System.IO.Path.GetFileName( filePath ) );    
             if( fileReference != null ) {
                 Debug.Log("File already exists: " + filePath); //not a warning, because this is normal for most builds!
 
                 //HAC$$anonymous$$ for Unity issue with CoreLocation framework - 1131399
                 if (filePath != "System/Library/Frameworks/CoreLocation.framework")
                     return null;
             }

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Hotshot10101 · Feb 26, 2019 at 02:22 PM

This was fixed in a later 2018.2 version.

I am not sure why you are now having it happen in 2018.3.5.

I just did a brand new project in 2018.3.6. I imported the latest version of the plugin and built the SimpleTest scene.

I built to iOS and opened in xCode and it built fine there. I don't know if maybe there was an error in 2018.3.5 or not, but .6 seems to work.

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

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

IOS Build from unity3d give "error: linker command failed with exit code 1 (use -v to see invocation)" error 0 Answers

Apple Mach-O Linker (ld) Error: Linker Command Failed 1 Answer

Error building for iOS: framework not found FBSDKCoreKit for architecture armv7 2 Answers

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

Linker error when creating a static iOS library that depends on another static library. 1 Answer


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