Search Unity

For the love of God why IOS app crash on start when add ADs?

Discussion in 'Unity Ads & User Acquisition' started by Antvol, May 29, 2019.

  1. Antvol

    Antvol

    Joined:
    Feb 12, 2019
    Posts:
    1
    I'm trying to add AD to my project using ADmob and UnityAds.
    I'm gonna explain every step to be more clear.

    Added and import plugins to the editor, enable the service, configure on both sides(editor / admob site) - no problems were there.
    Build shows succeed, .unityproject opened, configured general settings and press "Archive"
    Archive failded.
    Error: ‘GoogleMobileAds/GoogleMobileAds.h’ file not found and build crashed

    I googled. Fixed with:
    Play Services Resolver -> IOS Resolver -> Install cocoapods
    Via terminal install cocoapods and run "pod install"
    .workspace file was created, opened and Archive

    Archive failed.
    error: linked command failed with exit code 1" (Screenshot 1)
    Log says:
    /Users/antonvolovich/Library/Developer/Xcode/DerivedData/Unity-iPhone-bdjzicisdncfjzgfqvywbamhqzmv/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAdsUnityWrapper-9f1118c081ac866e1877d4646bd1250df049e275c38a5ba65679494dfa7629fa.o
    ld: 3 duplicate symbols for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)




    I googled.
    Found this solution and it was unchecking the unity-iphone project at "Target Membership" in UnityAdsUnityWrapper.mm file
    (Screenshot 2)


    Archive succeed, uploading to the TestFlight successful.
    Run the app. Shows black screen and immediately crashes(close).

    I googled.

    Set back the flag at target membership and disable built-in Ads extension in Unity Editor Services. Build and archive. All successful but same result. Crash on initialization.
    (Screenshot 3)



    So i still don't know how to fix it.
    Thanks to everyone who is not indifferent
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      6.7 KB
      Views:
      632
    • 2.jpg
      2.jpg
      File size:
      151 KB
      Views:
      659
    • 3.png
      3.png
      File size:
      36.5 KB
      Views:
      630
    Last edited: May 29, 2019
  2. mikaisomaa

    mikaisomaa

    Unity Technologies

    Joined:
    Sep 14, 2015
    Posts:
    365