Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Replacing Unity files in xcode project.

Discussion in 'iOS and tvOS' started by lmbarns, Mar 7, 2015.

  1. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    I have an existing project with native functionality that includes the Data, Classes, and Libraries folders from a Unity xcode project. It works properly.

    I've since gone into the Unity project (same unity version) and changed the compression on textures to reduce the build size.

    I was hoping I could simply overwrite the Data folder with the new one and it would work, it compiles fine, and deploys to device, but once the splash screen finishes showing the app crashes.

    The error in the xcode console states:

    It's finding the mscorlib, I deleted it and it threw a different error saying it couldn't find it, when I added it, it fails to load it...

    Do I need to copy all 3 folders (Data, Classes, Libraries) or just the scene data? No code is changed, only texture compressions.....I was hoping I could just swap the .asset files and it would still work but it doesn't.

    Any idea's?
     
    Last edited: Mar 7, 2015
  2. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    If you are using the same Unity version, why you are not just appending the Xcode project?
     
    lmbarns likes this.
  3. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    Thanks, didn't realize you could do that. I now get an error because I'm on a different computer...
    FileNotFoundException:
    where iosDev is the name of my computer....

    I went to the user.pbxuser file and renamed it to iosDev.pbxuser but then it throws an error:

     
    Last edited: Mar 9, 2015
  4. martonekler

    martonekler

    Unity Technologies

    Joined:
    Feb 5, 2015
    Posts:
    31
    Hi,

    do you have "Symlink Unity libraries" turned on in the iOS build settings? If you are using a different computer you may want to turn that off and try to build the project with append again.
     
  5. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    Weird. It was the opposite of that. I had it turned off, but after turning it on, it appends without warning......thanks!


    But it looks like Unity 4.5.3 doesn't export a System.xml.dll.s file anymore? There's one in the project I'm updating/appending to.
     
  6. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    So I can append my project but when I go to deploy to device in xcode it throws errors when linking:

    Xcode 6.1
    IOS 7.1
    Unity 4.5.3
     
  7. emeroglu

    emeroglu

    Joined:
    Jan 2, 2016
    Posts:
    1
    Is the "Symlink Unity Libraries" property for Unity Pro? I have Unity 5.3.2f1 and I don't have the checkbox...