Hello,
I published Android game with UnityAd. It works well.
and I tested sample project on iOS with UnityAds unity plugin from Asset store.
so It was no problem with my iOS device with sample project and UnityAd.
btw After applied my project, I tried iOS build but xCode couldnot find UnityAds.h
It seems already UnityAds framework and bundle in xCodeproject.
I am a newbie on Xcode so didn’t know how to solve this problem.
When I tested sample project. I didn’t change or put any option in xCode setting for UnityAds.
if I tried copy UnityAds.h to library folder or root folder of UnityAds, xCode show linker error like -mach…
What did I wrong?
I using iMac and Unity 4.6.2, xCode (newest one)
Salazar
February 14, 2015, 9:57pm
3
Hello,
Did you try to re import the plugin after changing your platform.
Regards,
1 Like
Mishaps
February 15, 2015, 1:53am
4
I’m getting the same issue Xcode failing saying:
…/Xcode/Libraries/UnityAdsUnityWrapper.h:7:9: ‘UnityAds/UnityAds.h’ file not found
Even happens in a blank project with just Unity Ads plugin.
Unity Ads v1.0.4. Unity 4.6.2p2. Bug Report #672455
With the latest unity update the error in the unity console has more info now:
KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (.TKey key) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150)
UnityEngine.Advertisements.XCodeEditor.XCProject…ctor (System.String filePath) (at Assets/Standard Assets/Editor/UnityAds/XCodeEditor/XCProject.cs:93)
UnityEngine.Advertisements.UnityAdsPostprocessor.ProcessXCodeProject (System.String path) (at Assets/Standard Assets/Editor/UnityAds/Scripts/UnityAdsPostprocessor.cs:43)
UnityEngine.Advertisements.UnityAdsPostprocessor.PostProcessBuild_iOS (System.String path) (at Assets/Standard Assets/Editor/UnityAds/Scripts/UnityAdsPostprocessor.cs:38)
UnityEngine.Advertisements.UnityAdsPostprocessor.OnPostProcessBuild (BuildTarget target, System.String path) (at Assets/Standard Assets/Editor/UnityAds/Scripts/UnityAdsPostprocessor.cs:22)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
mike950
February 15, 2015, 2:50am
5
i pushed the button to setup for ios now i get this error
ld: library not found for -liPhone-lib
update: ok getting closer
after reading this: Error when I updated to xcode 5 to get import to ios 7. - Questions & Answers - Unity Discussions
now the next one:
ld: framework not found UnityAds
ok applied the same get rid of the "'s to the frameworks search path and got past that one!
now the next one:
bunch of other linker errors…
1 Like
Did you ever solve this mike?
Yeah the link helped. And the other errors were just project specific to me.
It’s been a while though so I’m sure by now those problems are fixed.
I got this issue resolved by removing admb plugin from iOS build. Somehow admob plugin is in conflict with UnityAds
1 Like
IvyKun
June 11, 2015, 8:59am
9
For me, I still had the problem after removing admob from iOS.
What I did was delete UnityAds.framework from the UnityAds folder in Xcode and then add it again and it solved it.
Did you tried it on Unity 5?
Or import StoreKit.framework, AdSupport.framework and CoreTelephony.framework to Framework
I have the same issue when using Unity5.3.3f1, but seems Unity5.3.3P2 solved this problem.