Git Product home page Git Product logo

Comments (31)

scarffy avatar scarffy commented on June 14, 2024 3

@yasirkula @mateenagy @jbgtmartin Happy news guys! I managed to make it work. From the bottom of my heart, I truly thank you for the help you guys give me.

I missed out @jbgtmartin comment. My prefix header for TARGET is already right but not for PROJECT. After I build, I ran to this error #15 which is easily solved.

from unityionicintegration.

mateenagy avatar mateenagy commented on June 14, 2024 1

At first I also get this kind of error and I am not sure how I solved this but try again the whole thing again. I also change the unityconfig.xconfig UNITY_RUNTIME_VERSION to the version I used but I don't think this is the problem. Maybe you missed something somewhere. When I tried to make it work it took me around 4 day to figure everything out. :D I also wrote a php script for changing the files after export which makes these steps a little bit faster. I will post this script today and you can try with that if you want.

from unityionicintegration.

mateenagy avatar mateenagy commented on June 14, 2024 1

I made the repo and a how-to for the script. Feel free to ask if you need more help with it.
https://github.com/mateenagy/UnityIonicIntegrationHelperiOS

from unityionicintegration.

mateenagy avatar mateenagy commented on June 14, 2024 1

@scarffy Yes it can cause the problem. When you click on the prefix header and press DELETE it changes the path to the unity folder. And you need to do this in the TARGET and in the PROJECT

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024 1

I didn't see the edit while commenting, sorry. Thanks @mateenagy for the assist :)

from unityionicintegration.

jbgtmartin avatar jbgtmartin commented on June 14, 2024 1

I had the same issue. When I press delete, the Prefix Header just becomes blank (it doesn't change to the unity folder).
So I manually set the Prefix Header values to $(UNITY_IOS_EXPORTED_PATH)/Classes/Prefix.pch for both TARGET and PROJECT, and now I can build the project without errors.

I'm using Xcode 9.3 and Unity 2017.3.

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

In your screenshot, there are two Data directories listed under Unity group. There should only be one Data directory there. Guess you dragged Data instead of Classes by mistake.

from unityionicintegration.

royken avatar royken commented on June 14, 2024

Thank you @yasirkula !!!

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

Hi guys,

I have kind of similar problem.

I followed the tutorial but I this error 'use of undeclared identifier' on UnityInitStartupTime(); and UnityInitRuntime(argc, argv);

screen shot 2018-05-08 at 11 02 36 am

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

Can you show the contents of the Unity group in Xcode?

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

Here it is.

screen shot 2018-05-08 at 2 51 24 pm

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

If you are trying to test the app on a simulator, can you also try to test it on a real device and see if it changes anything? Unity produces slightly different output for simulators (see Target SDK/SDK Version), so it might be the issue here. Otherwise, if you have made all the adjustments to both PROJECT and TARGETS in Build Settings correctly, I couldn't spot the issue at first glance.

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

Unfortunately, the error doesn't go away when I try to test it on a real device. :(

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

If you are sure that you have set all the configurations to unityconfig and that you have set the value of UNITY_IOS_EXPORTED_PATH to the path of your Unity build directory (not the one in the screenshot) for both PROJECT and TARGETS, then I guess any help is welcome at this point.

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

I am quite sure I set up this properly. Here's my screenshot of UNITY_IOS_EXPORTED_PATH and also in config

screen shot 2018-05-08 at 4 39 26 pm

screen shot 2018-05-08 at 4 42 02 pm

screen shot 2018-05-08 at 4 44 33 pm

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

Can you show the contents of /Users/Scarffy/Desktop/iOSNativeApp, as well? Just to be sure, if it is OK.

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

Here you go.

screen shot 2018-05-08 at 5 08 55 pm

Edit : I'm using unity 2017.3.1 but UNITY_RUNTIME_VERSION says 5.5.2f1. Does it have an effect on this?

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

Thank you for providing all the info. Looking at the screenshots, everything does seem to be in order; and I currently have no clues to fix this error.

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

That's a bummer. Thanks for trying to solve this issue.

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

@yasirkula Sorry if I request too much but can you do a video tutorial on this project?
@mateenagy maybe I miss out on prefix header? I'm not sure how to set this up. I read the tutorial, delete if it revert to default value but not quite sure what is the default value.

screen shot 2018-05-14 at 4 26 11 pm

screen shot 2018-05-14 at 4 26 57 pm

edit : added screenshot

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

A video tutorial sounds nice but neither my current setup nor my motivation is ready for it :/ Sorry.

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

@yasirkula No problem :)
@mateenagy From my screenshot, it should be correct. I tried with unity 2017.1 but it's the same thing. Maybe different xcode version that cause it?

Yasir using xcode 8.3.3 while I'm using xcode 9.3.1

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

If your Unity build path is /Users/Scarffy/Desktop/iOSNativeApp, then both of them should point to /Users/Scarffy/Desktop/iOSNativeApp/Classes/Prefix.pch. When you select them and press Delete, their values should automatically revert to it.

from unityionicintegration.

mateenagy avatar mateenagy commented on June 14, 2024

No I also use Xcode 9.3.1 with Unity 2017.1 and 2018 and everything works well. I also use with the newest Vuforia(only Vuforia or camera usage can be cause problem in Xcode 9.3, but not like this). But yasirkula is right, both of the Prefix Header path should be the same if you delete them.

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

It shouldn't make any different if I don't use vuforia right?
I can also confirm my Prefix Header path is correct. It point to /Users/Scarffy/Desktop/iOSNativeApp/Classes/Prefix.pch.

from unityionicintegration.

mateenagy avatar mateenagy commented on June 14, 2024

@scarffy There is no difference. Did you set the prefix header for both TARGET and PROJECT?

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

Yes I did. I'll try with blank project for both ionic and unity. I'll let you know how it goes

from unityionicintegration.

scarffy avatar scarffy commented on June 14, 2024

Hi Guys, I think I run out of luck with this plugin. I'm not sure where I went wrong, I just can't make it work.

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

Did it work on a blank project, though?

from unityionicintegration.

mateenagy avatar mateenagy commented on June 14, 2024

@scarffy Can you upload the blank project you made to github so I or we can check your code?

from unityionicintegration.

yasirkula avatar yasirkula commented on June 14, 2024

Glad to hear it!

from unityionicintegration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.