Thursday, December 22, 2022

Unity Build: Make Xcode Workspace File and Disable Bitcode

Delete Admob then Reimport

Unity IOS Resolver Setting - Cocoapods Integration - XCode Project

Plugins - IOS -GADUAdNetworkExtras - check: Adsupport, EventKit, EventKitUI

You cant find Unity-iPhone.xcworkspace file in Unity build folder. So here is how to create one:

  1. right click on Build folder
  2. click New Terminal at Folder
  3. type "pod init"
  4. type "pod install"
Disable Bitcode:



arm64 function not 4-byte aligned _unwind_tester from libiphone-lib.a(unwind_test_arm64.o):

Remove "$(inherited)" in Unity-Iphone > UnityFramework > Building Settings > Other Linker Flags

GAD dll:
Add "-ObjC $(inherited)" in Unity-Iphone > UnityFramework > Building Settings > Other Linker Flags

General > Framework, Libraries, and Embedded Content > add GoogleMobileAds.xcFramework

terminal: brew install cocoapods

IDFA Kids thing:
their letter is

========

We noticed that your Kids Category app includes analytics, advertising and collects, transmits, or has the ability to share personal information or device information with third parties. Specifically:


- Your app includes third-party analytics or third-party advertising with the ability to collect, transmit or share identifiable information, including, for example, IDFA. We found that your app references the ASIdentifierManager API, which provides access to a user's IDFA, in the following location(s) in your binary:


• /System/Library/Frameworks/AdSupport.framework/AdSupport

• Frameworks/UnityFramework.framework/UnityFramework


It would be appropriate to remove all instances of “ASIdentifierManager” from your app, even if they are not utilized in your app's functionality.

===========

Firebase

after "pod install" run "pod update Firebase/AnalyticsWithoutAdIdSupport"

========
 

open Xcode, on left bar click search for "AdSupport" and "ASIdentifierManager". You will find it on file "DeviceSettings.mm" and on Pods folder

erase all adsupport reference and ASIdentifier erase weak link framework adsupport
erase #if to #endif

#if UNITY_USES_IAD

    ...

#endif