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 djkr · Mar 26, 2012 at 07:31 AM · erroriosxcodecompilingunity3.5

XCode Errors: "_AVCaptureSession" - Unity 3.5 compile problems?

Hi... I'm getting errors from XCode when I try to export a Unity project (which I have successfully published Previous to Unity 3.5 - with ver. 3.4 - to iPhone and also the Simulator)

There are 8 errors - I've tried starting a brand new Build, Quit/Restart XCode a few times - and turned on Symlink Unity Libraries - but no success...

Anyway - can anyone tell me what I need to adjust? It's referenceing VIDEO, so there is a chance I have an old video-texture based player floating somewhere in the files - will search and see if I can remove it - but in the meantime- can you take a look and see if some of the other errors here can be fixed?

Appreciated Much! Sincerely, DJKR

Here is the FULL set of (x8) errors:

 ld: warning: directory '"/Users/djkr/MCTG(iPHONE5)"' following -L not found


ld: warning: directory '"/Users/djkr/MCTG(iPHONE5)/Libraries"' following -L not found

"_AVCaptureSessionPresetLow", referenced from:

   _AVCaptureSessionPresetLow$non_lazy_ptr in libiPhone-lib.a(VideoTexture.o)


  (maybe you meant: _AVCaptureSessionPresetLow$non_lazy_ptr)


"OBJC_CLASS$_AVCaptureVideoDataOutput", referenced from:

   objc-class-ref-to-AVCaptureVideoDataOutput in libiPhone-lib.a(VideoTexture.o)


"OBJC_CLASS$_AVCaptureSession", referenced from:

   objc-class-ref-to-AVCaptureSession in libiPhone-lib.a(VideoTexture.o)


"_AVCaptureSessionPreset640x480", referenced from:

   _AVCaptureSessionPreset640x480$non_lazy_ptr in libiPhone-lib.a(VideoTexture.o)


  (maybe you meant: _AVCaptureSessionPreset640x480$non_lazy_ptr)


"_AVCaptureSessionPreset1280x720", referenced from:

   _AVCaptureSessionPreset1280x720$non_lazy_ptr in libiPhone-lib.a(VideoTexture.o)


  (maybe you meant: _AVCaptureSessionPreset1280x720$non_lazy_ptr)


"OBJC_CLASS$_AVCaptureDeviceInput", referenced from:

   objc-class-ref-to-AVCaptureDeviceInput in libiPhone-lib.a(VideoTexture.o)


"_AVCaptureSessionPresetMedium", referenced from:

   _AVCaptureSessionPresetMedium$non_lazy_ptr in libiPhone-lib.a(VideoTexture.o)


  (maybe you meant: _AVCaptureSessionPresetMedium$non_lazy_ptr)


"OBJC_CLASS$_AVCaptureDevice", referenced from:

   objc-class-ref-to-AVCaptureDevice in libiPhone-lib.a(VideoTexture.o)


ld: symbol(s) not found

collect2: ld returned 1 exit status

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by djkr · Mar 28, 2012 at 04:11 AM

I got the ANSWER!

I'm answering my own question after several failed attempts...

TO FIX UNITY 3.5 Problems exporting to iOS (to XCODE) - You may want to try checking/doing the following:

1) I was using XCODE 3.2.5 (LoL)... so: DOWNLOAD XCODE 4.2 (Depending on your system - make sure you have 10.6 or higher)

DO NOT INSTALL XCODE 4.2 YET... FIRST

2) Upgrade your Mac's System Software (I tried installing, and got INSTALLATION FAILED - I didnt have an updated system (LoL2) )

3) INSTAL XCODE 4.2 (and Restart after the install)

4) TRY IT EXPORTING WITH UNITY 3.5 to your new XCode after Restarting/Upgrading... You might want to make sure when you BUILD AND RUN you project - that you: a) first USE A NEW Build NAME/FOLDER for your EXPORT (or REPLACE the previous Attempt) b) second make sure that 'Symlink Unity Libraries' IS CHECKED! (in the BUILD SETTINGS)

GOOD LUCK! Hope this helps... it took me a while to do all the Upgrading, Restarting, Builds, etc... so give yourself about 1-4 hours, because it depends on how 'old' (not upgraded) your system is....

Cheers, DJKR

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 fatso · Jul 16, 2012 at 01:01 AM

The other thing which can help is to Clean the build in XCode. This is because recent versions of Xcode will treat a project at the same path as sharing the same intermediate object data in its temp directory. When Unity completely replaces an existing project, XCode can still be using an old object file.

This is one of the reasons why the tip to use a new build folder name from Kris works, but even if you delete the folder and recreate it from Unity, XCode may need that Clean before it will build the project properly!

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

iOS Archive error: Build input file cannot be found: '/Users/navil/Desktop/WW3ClientiOS/Classes/Native/Unity.ugui_CodeGen.c' (in target 'Unity-iPhone' from project 'Unity-iPhone') 2 Answers

xCode "dyld`dyld_fatal_error:" in iPhone4S 0 Answers

Undefined symbols for architecture i386: with 200+ apple mach-o linker (Id) errors 4 Answers

iPhone / Ipad Exporting - Xcode failing build 2 Answers

xCode pods problem when building for iOS 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