iOS package build procedure

Please follow the procedure below to create it.

  1. Creating xcodeproj
  2. Adding an adapter
  3. Build Settings settings
  4. Manual introduction

1. Creating xcodeproj

  1. Select File -> Build Settings from the menu bar.
  2. Select Platform iOS.
  3. Write the following in PlayServicesResolver-> Editor-> GNDependencies.
    • (If you do not use cocoapods please delete every iosPods tag)
<iosPods>

    <iosPod name="Google-Mobile-Ads-SDK" version="~> 7.0" bitcodeEnabled="true"
            minTargetSdk="6.0">
      <sources>
        <source>https://github.com/CocoaPods/Specs</source>
      </sources>
    </iosPod>

    <iosPod name="Geniee-iOS-SDK" />

    <iosPod name="Geniee-Google-Mediation-Adapter" />

  </iosPods>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  1. If you have not edited Bundle Identifier etc, press Player Settings and edit the necessary setting items.

    • You can select Device SDK orSimulator SDK with * Configuration -> Target SDK. Please switch according to the execution environment.
    • Target minimum Set iOS Version to at least 9.0.
  2. Press Build.

  3. (When using cocoapods) pod update is executed within the dir of the xcode project

  4. (When using cocoapods) Open the Xcode project side on the xcworkspece side and confirm that the library is downloaded under Pods / Pods.

2. Target -> Build Settings (All)

Enable Modules(C and Objective-C)

Please set it to YES.

3. Resolve conflicts with Google Mobile Ads

  1. Remove -framework "GoogleMobileAds" from the following file of the xcode project
  • Pods
    • Pods-Unity-iPhone.release.xcconfig
    • Pods-Unity-iPhone.releaseforprofiling
    • Pods-Unity-iPhone.releaseforrunning.xcconfig
    • Pods-Unity-iPhone.debug.xcconfig

Cocoapods introduction is over.

4. Manual deployment (deprecated)

  1. To implement the manual installation procedure, first refer to the manual installation procedure of the banner and implement manual installation.

    Banner advertisement (manual installation manual)

  2. add the adapter

2.1. Drag and drop GNAdGoogleMediationAdapter.framework to Framework

Last Updated: 7/21/2020, 4:39:55 PM