Unity framework in xcode gives build errors

I get the following errors on a clean build after installing mediation, Xcode can't build. Any advice welcome.

Unity 2019.4.40f1
Mac osx 11.3.1
Xcode 13.2.1

minimum build target ios 13

8337195--1096014--Screen Shot 2022-08-04 at 23.38.56.png

Hey @enhawk ,

  • Could you also provide your Podfile and Podfile.lock files from your generated Xcode project?
  • What version of EDM4U are you using?

In essence what is happening, is that you have something that requires swift dependencies, but you are missing the project configuration to actually support swift.

Thanks for reaching out, let us know.

[quote=“DeclanMcPartlin”, post:2, topic: 890114]
Hey @enhawk ,

  • Could you also provide your Podfile and Podfile.lock files from your generated Xcode project?
  • What version of EDM4U are you using?

In essence what is happening, is that you have something that requires swift dependencies, but you are missing the project configuration to actually support swift.

Thanks for reaching out, let us know.
[/quote]

Hi @DeclanMcPartlin thanks for the reply,

I checked in Unity for the Play services resolver version and it sent me here https://github.com/googlesamples/unity-jar-resolver

I made a new project to test this:
Unity 2019.4.40f1 & Unity 2020.3.36f1
Mac osx 11.3.1
Xcode 13.2.1
CocoaPods 1.10.2

Without mediation, it builds fine.

After I install mediation, install the following adaptors:
Unity Ads
Admob
Meta
AdColony
IronSource
Applovin
Vungle

and build, Xcode give the same errors.

Here is the podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '13.0'

target 'UnityFramework' do
  pod 'Protobuf'
  pod 'UnityMediationAdColonyAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
  pod 'UnityMediationAdmobAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
  pod 'UnityMediationAppLovinAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
  pod 'UnityMediationFacebookAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
  pod 'UnityMediationIronSourceAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
  pod 'UnityMediationSdk', '~> 0.5.0', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
  pod 'UnityMediationUnityAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
  pod 'UnityMediationVungleAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
end


use_frameworks!

target 'Unity-iPhone' do
end

post_install do |installer|
  applicationTargets = [
    'Pods-Unity-iPhone',
  ]
  libraryTargets = [
    'Pods-UnityFramework',
  ]

  embedded_targets = installer.aggregate_targets.select { |aggregate_target|
    libraryTargets.include? aggregate_target.name
  }
  embedded_pod_targets = embedded_targets.flat_map { |embedded_target| embedded_target.pod_targets }
  host_targets = installer.aggregate_targets.select { |aggregate_target|
    applicationTargets.include? aggregate_target.name
  }

  host_targets.each do |host_target|
    host_target.xcconfigs.each do |config_name, config_file|
      host_target.pod_targets.each do |pod_target|
        if embedded_pod_targets.include? pod_target
          pod_target.specs.each do |spec|
            if spec.attributes_hash['ios'] != nil
              frameworkPaths = spec.attributes_hash['ios']['vendored_frameworks']
            else
              frameworkPaths = spec.attributes_hash['vendored_frameworks']
            end
            if frameworkPaths != nil
              frameworkNames = Array(frameworkPaths).map(&:to_s).map do |filename|
                extension = File.extname filename
                File.basename filename, extension
              end
              frameworkNames.each do |name|
                puts "Removing #{name} from OTHER_LDFLAGS of target #{host_target.name}"
                config_file.frameworks.delete(name)
              end
            end
          end
        end
      end
      xcconfig_path = host_target.xcconfig_path(config_name)
      config_file.save_as(xcconfig_path)
    end
  end
end

and the podfile lock

PODS:
  - AdColony (4.9.0)
  - AppLovinSDK (11.4.3)
  - FBAudienceNetwork (6.11.2)
  - Google-Mobile-Ads-SDK (9.9.0):
    - GoogleAppMeasurement (< 10.0, >= 7.0)
    - GoogleUserMessagingPlatform (>= 1.1)
  - GoogleAppMeasurement (9.4.0):
    - GoogleAppMeasurement/AdIdSupport (= 9.4.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.7)
    - GoogleUtilities/MethodSwizzler (~> 7.7)
    - GoogleUtilities/Network (~> 7.7)
    - "GoogleUtilities/NSData+zlib (~> 7.7)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleAppMeasurement/AdIdSupport (9.4.0):
    - GoogleAppMeasurement/WithoutAdIdSupport (= 9.4.0)
    - GoogleUtilities/AppDelegateSwizzler (~> 7.7)
    - GoogleUtilities/MethodSwizzler (~> 7.7)
    - GoogleUtilities/Network (~> 7.7)
    - "GoogleUtilities/NSData+zlib (~> 7.7)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleAppMeasurement/WithoutAdIdSupport (9.4.0):
    - GoogleUtilities/AppDelegateSwizzler (~> 7.7)
    - GoogleUtilities/MethodSwizzler (~> 7.7)
    - GoogleUtilities/Network (~> 7.7)
    - "GoogleUtilities/NSData+zlib (~> 7.7)"
    - nanopb (< 2.30910.0, >= 2.30908.0)
  - GoogleUserMessagingPlatform (2.0.0)
  - GoogleUtilities/AppDelegateSwizzler (7.7.0):
    - GoogleUtilities/Environment
    - GoogleUtilities/Logger
    - GoogleUtilities/Network
  - GoogleUtilities/Environment (7.7.0):
    - PromisesObjC (< 3.0, >= 1.2)
  - GoogleUtilities/Logger (7.7.0):
    - GoogleUtilities/Environment
  - GoogleUtilities/MethodSwizzler (7.7.0):
    - GoogleUtilities/Logger
  - GoogleUtilities/Network (7.7.0):
    - GoogleUtilities/Logger
    - "GoogleUtilities/NSData+zlib"
    - GoogleUtilities/Reachability
  - "GoogleUtilities/NSData+zlib (7.7.0)"
  - GoogleUtilities/Reachability (7.7.0):
    - GoogleUtilities/Logger
  - IronSourceSDK (7.2.4.0)
  - nanopb (2.30909.0):
    - nanopb/decode (= 2.30909.0)
    - nanopb/encode (= 2.30909.0)
  - nanopb/decode (2.30909.0)
  - nanopb/encode (2.30909.0)
  - PromisesObjC (2.1.1)
  - Protobuf (3.12.0)
  - UnityAds (4.3.0)
  - UnityMediationAdapter (3.0.1):
    - UnityMediationLogging (~> 1.0)
  - UnityMediationAdColonyAdapter (0.5.1):
    - AdColony (~> 4.8)
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationSdk (>= 0.5)
  - UnityMediationAdmobAdapter (0.5.1):
    - Google-Mobile-Ads-SDK (~> 9.0)
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationSdk (>= 0.5)
  - UnityMediationAppLovinAdapter (0.5.1):
    - AppLovinSDK (~> 11.0)
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationSdk (>= 0.5)
  - UnityMediationFacebookAdapter (0.5.1):
    - FBAudienceNetwork (~> 6.9)
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationSdk (>= 0.5)
  - UnityMediationIronSourceAdapter (0.5.0):
    - IronSourceSDK (~> 7.1)
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationSdk (>= 0.5)
  - UnityMediationLogging (1.0.0)
  - UnityMediationSdk (0.5.1):
    - Protobuf (~> 3.12.0)
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationLogging (~> 1.0)
  - UnityMediationUnityAdapter (0.5.0):
    - UnityAds (~> 4.1)
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationSdk (>= 0.5)
  - UnityMediationVungleAdapter (0.5.1):
    - UnityMediationAdapter (~> 3.0)
    - UnityMediationSdk (>= 0.5)
    - VungleSDK-iOS (~> 6.11)
  - VungleSDK-iOS (6.12.0)

DEPENDENCIES:
  - Protobuf
  - UnityMediationAdColonyAdapter
  - UnityMediationAdmobAdapter
  - UnityMediationAppLovinAdapter
  - UnityMediationFacebookAdapter
  - UnityMediationIronSourceAdapter
  - UnityMediationSdk (~> 0.5.0)
  - UnityMediationUnityAdapter
  - UnityMediationVungleAdapter

SPEC REPOS:
  https://github.com/CocoaPods/Specs:
    - AdColony
    - AppLovinSDK
    - FBAudienceNetwork
    - Google-Mobile-Ads-SDK
    - GoogleAppMeasurement
    - GoogleUserMessagingPlatform
    - GoogleUtilities
    - IronSourceSDK
    - nanopb
    - PromisesObjC
    - Protobuf
    - UnityAds
    - VungleSDK-iOS
  https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git:
    - UnityMediationAdapter
    - UnityMediationAdColonyAdapter
    - UnityMediationAdmobAdapter
    - UnityMediationAppLovinAdapter
    - UnityMediationFacebookAdapter
    - UnityMediationIronSourceAdapter
    - UnityMediationLogging
    - UnityMediationSdk
    - UnityMediationUnityAdapter
    - UnityMediationVungleAdapter

SPEC CHECKSUMS:
  AdColony: 4f3738dc633d7aaa8ec60729df973076cc8e97ed
  AppLovinSDK: 221dfbdff620be0ff227ed5b018b97b1f3d15713
  FBAudienceNetwork: 4600bc7fa9bd925b1e397b7c9bbef02923062bbc
  Google-Mobile-Ads-SDK: 8822993da940ab920bad131b5bffce7eb3f62c6a
  GoogleAppMeasurement: 5d69e04287fc2c10cc43724bfa4bf31fc12c3dff
  GoogleUserMessagingPlatform: ab890ce5f6620f293a21b6bdd82e416a2c73aeca
  GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1
  IronSourceSDK: 7cc4c28187764dfdf900dbf3dbd063ba22296bab
  nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
  PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
  Protobuf: 2793fcd0622a00b546c60e7cbbcc493e043e9bb9
  UnityAds: 53f7a71da8a16b3eedb57d3930e672687939f643
  UnityMediationAdapter: ea2a9f5510b4991ef981ea53469d32eeccd400a2
  UnityMediationAdColonyAdapter: e880b4f43cbd41a469edfaade5503669603ca0fb
  UnityMediationAdmobAdapter: 22a8d1996d67c4c76a777ad0a84045b35e46f51c
  UnityMediationAppLovinAdapter: 3cfbd09e15245f7e109273aba1e38add050f7a09
  UnityMediationFacebookAdapter: fbe09670da4399ea7339e32659713eb5f45ec746
  UnityMediationIronSourceAdapter: cb75743d415a35a17801f151d6c2a1c2cb0f24fd
  UnityMediationLogging: af0274f8b544950228abd302e793d5f43404b770
  UnityMediationSdk: 44880c02548f05b0026a502440049c71159ce802
  UnityMediationUnityAdapter: e606aba74a994abb9aa0bac674b6aaaa4e0699d4
  UnityMediationVungleAdapter: 654aedbf2f740e6c4d554364cb9f3b1d9e0c5510
  VungleSDK-iOS: 1936f966dd5828d171fc514343741480bf219496

PODFILE CHECKSUM: b8531429e3ff845c9acaf4341f23d8ab5f1d3d82

COCOAPODS: 1.10.2

Hey @enhawk ,

Thank you for providing these files, all looks good on that end, so Podfile generation is not the issue. Looking at your cocoapods version, the issue might lie there. With the steps you provided, I'm able to build, the difference being that I'm using version 1.11.3, there have been swift specific fixes between the two versions (more info).

I'd recommend updating cocoapods on your machine to v1.11.3 and let us know if you are still facing the same issues, thanks again for bringing this up!

1 Like

[quote=“DeclanMcPartlin”, post:4, topic: 890114]
Hey @enhawk ,

Thank you for providing these files, all looks good on that end, so Podfile generation is not the issue. Looking at your cocoapods version, the issue might lie there. With the steps you provided, I’m able to build, the difference being that I’m using version 1.11.3, there have been swift specific fixes between the two versions (more info).

I’d recommend updating cocoapods on your machine to v1.11.3 and let us know if you are still facing the same issues, thanks again for bringing this up!
[/quote]

Thanks for the reply, I’m going to try this out. For some reason I had to revert cocoapods a while back.

[quote=“DeclanMcPartlin”, post:4, topic: 890114]
Hey @enhawk ,

Thank you for providing these files, all looks good on that end, so Podfile generation is not the issue. Looking at your cocoapods version, the issue might lie there. With the steps you provided, I’m able to build, the difference being that I’m using version 1.11.3, there have been swift specific fixes between the two versions (more info).

I’d recommend updating cocoapods on your machine to v1.11.3 and let us know if you are still facing the same issues, thanks again for bringing this up!
[/quote]

Hi @DeclanMcPartlin

I uninstalled my old cocoapods and installed 1.11.3 in terminal.

Unity says pods are installed via the iOS resolver. When I build in Unity I get this error:

iOS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.

After the failure, "pod repo update" was executed and succeeded. "pod install" was then attempted again, and still failed. This may be due to a broken CocoaPods installation. See: https://guides.cocoapods.org/using/troubleshooting.html for potential solutions.

pod install output:



    [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    Consider adding the following to ~/.profile:

    export LANG=en_US.UTF-8
    [0m
/usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `unicode_normalize'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `installation_root'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:226:in `podfile_path'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:105:in `markdown_podfile'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:30:in `report'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:66:in `report_error'
    from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:396:in `handle_exception'
    from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:337:in `rescue in run'
    from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:324:in `run'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
    from /usr/local/bin/pod:23:in `load'
    from /usr/local/bin/pod:23:in `<main>'
/usr/local/Cellar/ruby/2.7.2/lib/ruby/2.7.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `unicode_normalize'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `installation_root'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:226:in `podfile_path'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:205:in `podfile'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:46:in `run'
    from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
    from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
    from /usr/local/bin/pod:23:in `load'
    from /usr/local/bin/pod:23:in `<main>'



pod repo update output:



    [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    Consider adding the following to ~/.profile:

    export LANG=en_US.UTF-8
    [0m

UnityEngine.Debug:LogError (object)
Google.Logger:Log (string,Google.LogLevel)
Google.IOSResolver:Log (string,bool,Google.LogLevel)
Google.IOSResolver:OnPostProcessInstallPods (UnityEditor.BuildTarget,string)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:442)

So I navigated to my xcode project folder in terminal and manually added these with:

Mac-mini:~ me$ cd /project folder name
Mac-mini:project folder name me$ pod repo update
Mac-mini:project folder name me$ pod install
Analyzing dependencies
Cloning spec repo `cocoapods` from `https://github.com/CocoaPods/Specs.git`
Cloning spec repo `unity-technologies-unity-mediation-cocoapods-prod` from `https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git`
Downloading dependencies
Installing AdColony (4.9.0)
Installing AppLovinSDK (11.4.3)
Installing FBAudienceNetwork (6.11.2)
Installing Google-Mobile-Ads-SDK (9.9.0)
Installing GoogleAppMeasurement (9.4.0)
Installing GoogleUserMessagingPlatform (2.0.0)
Installing GoogleUtilities (7.7.0)
Installing IronSourceSDK (7.2.4.0)
Installing PromisesObjC (2.1.1)
Installing Protobuf (3.12.0)
Installing UnityAds (4.3.0)
Installing UnityMediationAdColonyAdapter (0.5.1)
Installing UnityMediationAdapter (3.0.1)
Installing UnityMediationAdmobAdapter (0.5.1)
Installing UnityMediationAppLovinAdapter (0.5.1)
Installing UnityMediationFacebookAdapter (0.5.1)
Installing UnityMediationIronSourceAdapter (0.5.0)
Installing UnityMediationLogging (1.0.0)
Installing UnityMediationSdk (0.5.1)
Installing UnityMediationUnityAdapter (0.5.0)
Installing UnityMediationVungleAdapter (0.5.1)
Installing VungleSDK-iOS (6.12.0)
Installing nanopb (2.30909.0)
Generating Pods project
Removing AdColony from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing AppLovinSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing FBAudienceNetwork from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurementIdentitySupport from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurement from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UserMessagingPlatform from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing IronSource from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityAds from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdColonyAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdmobAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAppLovinAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationFacebookAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationIronSourceAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationLogging from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationSdk from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationUnityAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationVungleAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing VungleSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing AdColony from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing AppLovinSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing FBAudienceNetwork from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurementIdentitySupport from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurement from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UserMessagingPlatform from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing IronSource from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityAds from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdColonyAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdmobAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAppLovinAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationFacebookAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationIronSourceAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationLogging from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationSdk from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationUnityAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationVungleAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing VungleSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing AdColony from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing AppLovinSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing FBAudienceNetwork from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurementIdentitySupport from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurement from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UserMessagingPlatform from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing IronSource from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityAds from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdColonyAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdmobAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAppLovinAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationFacebookAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationIronSourceAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationLogging from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationSdk from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationUnityAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationVungleAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing VungleSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing AdColony from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing AppLovinSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing FBAudienceNetwork from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurementIdentitySupport from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing GoogleAppMeasurement from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UserMessagingPlatform from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing IronSource from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityAds from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdColonyAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAdmobAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationAppLovinAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationFacebookAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationIronSourceAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationLogging from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationSdk from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationUnityAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing UnityMediationVungleAdapter from OTHER_LDFLAGS of target Pods-Unity-iPhone
Removing VungleSDK from OTHER_LDFLAGS of target Pods-Unity-iPhone
Integrating client project

[!] Please close any current Xcode sessions and use `Unity-iPhone.xcworkspace` for this project from now on.
Pod installation complete! There are 9 dependencies from the Podfile and 23 total pods installed.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

[!] Can't merge user_target_xcconfig for pod targets: ["FBAudienceNetwork", "UnityMediationAdColonyAdapter", "UnityMediationAdmobAdapter", "UnityMediationFacebookAdapter", "UnityMediationIronSourceAdapter", "UnityMediationVungleAdapter"]. Singular build setting EXCLUDED_ARCHS[sdk=iphonesimulator*] has different values.

And when I built, Unity failed again with the same message.

Any advice welcome

Hey @enhawk ,

Thanks for the reply.

The fact that you get different outcomes between the two attempts tells me you probably have either two installed versions of Cocoapods, or the shells differ between Terminal and Unity. Either way, in your Unity log, there is an important warning from Cocoapods that you really should follow, solutions are pointed out here. Restarting the Unity Editor is required, or at least restarting the Unity Editor shell I believe. Once you're able to build from Unity again, let us know if that successful build still fails in Xcode, thanks!

[quote=“DeclanMcPartlin”, post:7, topic: 890114]
Hey @enhawk ,

Thanks for the reply.

The fact that you get different outcomes between the two attempts tells me you probably have either two installed versions of Cocoapods, or the shells differ between Terminal and Unity. Either way, in your Unity log, there is an important warning from Cocoapods that you really should follow, solutions are pointed out here. Restarting the Unity Editor is required, or at least restarting the Unity Editor shell I believe. Once you’re able to build from Unity again, let us know if that successful build still fails in Xcode, thanks!
[/quote]
The strange thing is, I already have that line of code in my .profile

I still get the same errors in Unity.

I’ll upgrade OSX and see what difference that makes, I’m still on Big Sur.

[quote=“DeclanMcPartlin”, post:7, topic: 890114]
Hey @enhawk ,

Thanks for the reply.

The fact that you get different outcomes between the two attempts tells me you probably have either two installed versions of Cocoapods, or the shells differ between Terminal and Unity. Either way, in your Unity log, there is an important warning from Cocoapods that you really should follow, solutions are pointed out here. Restarting the Unity Editor is required, or at least restarting the Unity Editor shell I believe. Once you’re able to build from Unity again, let us know if that successful build still fails in Xcode, thanks!
[/quote]

@DeclanMcPartlin do you have a minimum spec for Unity Mediation on iOS / OSX? It’s obviously not working for me my current set up. Would be good to know what is the minimum tested:

  • Unity
  • OSX
  • iOS
  • Xcode
  • Cocoapods

I can’t find this information on the mediation docs.

Hey. @enhawk ,

If you're still getting that same error even though you have that set in your .profile file, the default shell that Unity is using is probably not a shell that reads from the .profile file. If you are using some other shell, I'd recommend setting the required settings in that shell settings file also (I can only guess since this is based on your setup, but popular shells would use: ~/.zshrc, .bashrc, or .bash_profile). This issue is specifically regarding Cocoapods and the shell you use, it doesn't have anything to do with Unity specifically.

Regarding the minimum tested versions, we keep track of this here.

I hope that helps, let us know. Thanks!

[quote=“DeclanMcPartlin”, post:10, topic: 890114]
Hey. @enhawk ,

If you’re still getting that same error even though you have that set in your .profile file, the default shell that Unity is using is probably not a shell that reads from the .profile file. If you are using some other shell, I’d recommend setting the required settings in that shell settings file also (I can only guess since this is based on your setup, but popular shells would use: ~/.zshrc, .bashrc, or .bash_profile). This issue is specifically regarding Cocoapods and the shell you use, it doesn’t have anything to do with Unity specifically.

Regarding the minimum tested versions, we keep track of this here.

I hope that helps, let us know. Thanks!
[/quote]
@DeclanMcPartlin Thanks for the update.

Turns out I was using .bash_profile (somehow… not well versed in this stuff tbh). Changing this fixed the problem entirely.

Maybe it is worth add Cocoapods and Xcode version to that page? In this thread we discovered there is a minimum version required by Unity Mediation but it’s not listed on that page.

Hey @enhawk ,

Yeah that's a good point, I'll look into adding this. Glad to hear it works!

Best regards,

[quote=“DeclanMcPartlin”, post:12, topic: 890114]
Hey @enhawk ,

Yeah that’s a good point, I’ll look into adding this. Glad to hear it works!

Best regards,
[/quote]

Hi @DeclanMcPartlin On Xcode Version 13.2.1 when I archive I get the following error:

could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1316.0.21.2.5_0' Reader: '1300.0.29.30_0')', using libLTO version 'LLVM version 13.0.0, (clang-1300.0.29.30)' for architecture arm64

which means some part of the cocoapods was made with an older or newer version of Xcode.

Could you confirm what is the lowest version of Xcode to use Unity Mediation?

Hey @enhawk ,

Due to some of our dependencies (other ad networks) the lowest supported version of Xcode is 13.3 (as of writing this message), the documentation will be updated shortly, thanks for pointing that out!

1 Like

[quote=“DeclanMcPartlin”, post:14, topic: 890114]
Hey @enhawk ,

Due to some of our dependencies (other ad networks) the lowest supported version of Xcode is 13.3 (as of writing this message), the documentation will be updated shortly, thanks for pointing that out!
[/quote]

Thanks for the info!

@DeclanMcPartlin this also means Unity Mediation apps can’t be built on OSX Big Sur, Xcode 13.3 requires OSX Monterey

Hey @enhawk ,

I believe you are correct. This restriction though is due to our downstream dependencies, other ad networks, so it is out of our hands I'm afraid. Using just Unity Mediation and Unity Ads should have more backwards compatibility though.

[quote=“enhawk”, post:11, topic: 890114]
@DeclanMcPartlin Thanks for the update.

Turns out I was using .bash_profile (somehow… not well versed in this stuff tbh). Changing this fixed the problem entirely.

Maybe it is worth add Cocoapods and Xcode version to that page? In this thread we discovered there is a minimum version required by Unity Mediation but it’s not listed on that page.
[/quote]

First time ever writing in a forum. hope I get it right.
@enhawk can you explain how you solved this issue? I have the same exact problem. I don’t know what a .bash_profile is and what is shell settings file or where to find it. thank you

1 Like

Hey @chem_83 ,

Take a look at the link provided here . In terms of the location of the shell settings file, look in the locations:

  • ~/.profile
  • ~/.zshrc
  • ~/.bashrc
  • ~/.bash_profile

If this still doesn't fix your issue, I recommend continuing your search for the solution on stack overflow, since this is a Cocoapods specific issue, this is not specific to Unity Mediation, thanks!

1 Like

I have been having the same issue. I have been following this thread. Thank you @DeclanMcPartlin for listing the shell sources. By way of the cocoapods install documentation I created my own ~/.zshrc.

This my have been my first mistake.

1 Like

Recently I'm jumping back in to Ironsource installation and all the bash profile stuff drives it nuts.

Best solution I've found is to nuke everything bash related and do a clean cocoapods install.