Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Unity ios cloud build fail with mediation ? (facebook audience error)

Discussion in 'Unity Mediation' started by rbitard, Jul 23, 2022.

  1. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    Hello, I tried to build my app on ios using unity cloud build
    I have theses warnings and error in the full log :

    Code (JavaScript):
    1.     ld: warning: object file (/opt/workspace/workspace/rbitard.french-crapette.default-ios/temp20220723-5825-yijm7w/Libraries/lib_burst_generated.a(lib_burst_generated_part_0.o)) was built for newer iOS version (15.2) than being linked (11.0)
    2.     ld: warning: object file (/opt/workspace/workspace/rbitard.french-crapette.default-ios/temp20220723-5825-yijm7w/Libraries/lib_burst_generated.a(lib_burst_generated_part_0_globals.o)) was built for newer iOS version (15.2) than being linked (11.0)
    3.     ld: warning: object file (/opt/workspace/workspace/rbitard.french-crapette.default-ios/temp20220723-5825-yijm7w/Libraries/lib_burst_generated.a(lib_burst_generated_part_0_merged.o)) was built for newer iOS version (15.2) than being linked (11.0)
    4.     ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
    5.     ld: warning: Could not find or use auto-linked library 'swiftCompatibility51'
    6.     ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
    7.     ld: warning: Could not find or use auto-linked library 'swiftCompatibilityConcurrency'
    8.     ld: warning: Could not find or use auto-linked library 'swiftUIKit'
    9.     ld: warning: Could not find or use auto-linked library 'swiftDarwin'
    10.     ld: warning: Could not find or use auto-linked library 'swift_Concurrency'
    11.     ld: warning: Could not find or use auto-linked library 'swiftDispatch'
    12.     ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
    13.     ld: warning: Could not find or use auto-linked library 'swiftMetal'
    14.     ld: warning: Could not find or use auto-linked library 'swiftFileProvider'
    15.     ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
    16.     ld: warning: Could not find or use auto-linked library 'swiftDataDetection'
    17.     ld: warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
    18.     ld: warning: Could not find or use auto-linked library 'swiftFoundation'
    19.     ld: warning: Could not find or use auto-linked library 'swiftCore'
    20.     ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
    21.     ld: warning: Could not find or use auto-linked library 'swiftAVFoundation'
    22.     ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
    23.     ld: warning: Could not find or use auto-linked library 'swiftCoreMIDI'
    24.     ld: warning: Could not find or use auto-linked library 'swiftUniformTypeIdentifiers'
    25.     ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
    26.     ld: warning: Could not find or use auto-linked library 'swiftsimd'
    27.     ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
    28.     ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
    29.     ld: warning: Could not find or use auto-linked framework 'UnityMediationTrackingService'
    30.     ld: warning: Could not find or use auto-linked framework 'UnityMediationInstantiationService'
    31.     ld: warning: Could not find or use auto-linked framework 'UnityMediationS2SService'
    32.     Undefined symbols for architecture arm64:
    33.       "__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency", referenced from:
    34.           __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    35.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FBAudienceNetwork)
    36.       "__swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements", referenced from:
    37.           __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    38.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FBAudienceNetwork)
    39.       "__swift_FORCE_LOAD_$_swiftCompatibility51", referenced from:
    40.           __swift_FORCE_LOAD_$_swiftCompatibility51_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    41.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility51_$_FBAudienceNetwork)
    42.       "__swift_FORCE_LOAD_$_swiftCompatibility50", referenced from:
    43.           __swift_FORCE_LOAD_$_swiftCompatibility50_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    44.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility50_$_FBAudienceNetwork)
    45.       "__swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers", referenced from:
    46.           __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    47.          (maybe you meant: __swift_FORCE_LOAD_$_swiftUniformTypeIdentifiers_$_FBAudienceNetwork)
    48.       "__swift_FORCE_LOAD_$_swiftAVFoundation", referenced from:
    49.           __swift_FORCE_LOAD_$_swiftAVFoundation_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    50.          (maybe you meant: __swift_FORCE_LOAD_$_swiftAVFoundation_$_FBAudienceNetwork)
    51.       "__swift_FORCE_LOAD_$_swiftDataDetection", referenced from:
    52.           __swift_FORCE_LOAD_$_swiftDataDetection_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    53.          (maybe you meant: __swift_FORCE_LOAD_$_swiftDataDetection_$_FBAudienceNetwork)
    54.       "__swift_FORCE_LOAD_$_swiftCoreMIDI", referenced from:
    55.           __swift_FORCE_LOAD_$_swiftCoreMIDI_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    56.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreMIDI_$_FBAudienceNetwork)
    57.       "__swift_FORCE_LOAD_$_swiftsimd", referenced from:
    58.           __swift_FORCE_LOAD_$_swiftsimd_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    59.          (maybe you meant: __swift_FORCE_LOAD_$_swiftsimd_$_FBAudienceNetwork)
    60.       "__swift_FORCE_LOAD_$_swiftFileProvider", referenced from:
    61.           __swift_FORCE_LOAD_$_swiftFileProvider_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    62.          (maybe you meant: __swift_FORCE_LOAD_$_swiftFileProvider_$_FBAudienceNetwork)
    63.       "__swift_FORCE_LOAD_$_swiftMetal", referenced from:
    64.           __swift_FORCE_LOAD_$_swiftMetal_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    65.          (maybe you meant: __swift_FORCE_LOAD_$_swiftMetal_$_FBAudienceNetwork)
    66.       "__swift_FORCE_LOAD_$_swiftCoreImage", referenced from:
    67.           __swift_FORCE_LOAD_$_swiftCoreImage_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    68.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreImage_$_FBAudienceNetwork)
    69.       "__swift_FORCE_LOAD_$_swiftCoreGraphics", referenced from:
    70.           __swift_FORCE_LOAD_$_swiftCoreGraphics_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    71.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreGraphics_$_FBAudienceNetwork)
    72.       "__swift_FORCE_LOAD_$_swiftQuartzCore", referenced from:
    73.           __swift_FORCE_LOAD_$_swiftQuartzCore_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    74.          (maybe you meant: __swift_FORCE_LOAD_$_swiftQuartzCore_$_FBAudienceNetwork)
    75.       "__swift_FORCE_LOAD_$_swiftDispatch", referenced from:
    76.           __swift_FORCE_LOAD_$_swiftDispatch_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    77.          (maybe you meant: __swift_FORCE_LOAD_$_swiftDispatch_$_FBAudienceNetwork)
    78.       "__swift_FORCE_LOAD_$_swiftCoreFoundation", referenced from:
    79.           __swift_FORCE_LOAD_$_swiftCoreFoundation_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    80.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreFoundation_$_FBAudienceNetwork)
    81.       "__swift_FORCE_LOAD_$_swiftFoundation", referenced from:
    82.           __swift_FORCE_LOAD_$_swiftFoundation_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    83.          (maybe you meant: __swift_FORCE_LOAD_$_swiftFoundation_$_FBAudienceNetwork)
    84.       "_swift_getInitializedObjCClass", referenced from:
    85.           static FBAudienceNetwork.FBAdFont.sfuiTextRegular(withSize: CoreGraphics.CGFloat) -> __C.UIFont in FBAudienceNetwork(FBAudienceNetwork.o)
    86.           static FBAudienceNetwork.FBAdFont.sfuiDisplaySemibold(withSize: CoreGraphics.CGFloat) -> __C.UIFont in FBAudienceNetwork(FBAudienceNetwork.o)
    87.           type metadata accessor for FBAudienceNetwork.FBAdFont in FBAudienceNetwork(FBAudienceNetwork.o)
    88.       "__swift_FORCE_LOAD_$_swiftObjectiveC", referenced from:
    89.           __swift_FORCE_LOAD_$_swiftObjectiveC_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    90.          (maybe you meant: __swift_FORCE_LOAD_$_swiftObjectiveC_$_FBAudienceNetwork)
    91.       "_swift_once", referenced from:
    92.           FBAudienceNetwork.FBAdFont.fontSizeTiny.unsafeMutableAddressor : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    93.           FBAudienceNetwork.FBAdFont.fontSizeExtraSmall.unsafeMutableAddressor : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    94.           FBAudienceNetwork.FBAdFont.fontSizeSmall.unsafeMutableAddressor : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    95.           FBAudienceNetwork.FBAdFont.fontSizeMedium.unsafeMutableAddressor : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    96.           FBAudienceNetwork.FBAdFont.fontSizeLarge.unsafeMutableAddressor : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    97.           FBAudienceNetwork.FBAdFont.fontSizeExtraLarge.unsafeMutableAddressor : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    98.       "__swift_FORCE_LOAD_$_swiftCoreAudio", referenced from:
    99.           __swift_FORCE_LOAD_$_swiftCoreAudio_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    100.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreAudio_$_FBAudienceNetwork)
    101.       "__swift_FORCE_LOAD_$_swiftDarwin", referenced from:
    102.           __swift_FORCE_LOAD_$_swiftDarwin_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    103.          (maybe you meant: __swift_FORCE_LOAD_$_swiftDarwin_$_FBAudienceNetwork)
    104.       "_swift_getObjectType", referenced from:
    105.           FBAudienceNetwork.FBAdFont.init() -> FBAudienceNetwork.FBAdFont in FBAudienceNetwork(FBAudienceNetwork.o)
    106.           FBAudienceNetwork.FBAdFont.__deallocating_deinit in FBAudienceNetwork(FBAudienceNetwork.o)
    107.       "__swift_FORCE_LOAD_$_swiftUIKit", referenced from:
    108.           __swift_FORCE_LOAD_$_swiftUIKit_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    109.          (maybe you meant: __swift_FORCE_LOAD_$_swiftUIKit_$_FBAudienceNetwork)
    110.       "value witness table for Builtin.UnknownObject", referenced from:
    111.           full type metadata for FBAudienceNetwork.FBAdFont in FBAudienceNetwork(FBAudienceNetwork.o)
    112.       "_swift_getObjCClassMetadata", referenced from:
    113.           @objc static FBAudienceNetwork.FBAdFont.sfuiTextRegular(withSize: CoreGraphics.CGFloat) -> __C.UIFont in FBAudienceNetwork(FBAudienceNetwork.o)
    114.           @objc static FBAudienceNetwork.FBAdFont.sfuiDisplaySemibold(withSize: CoreGraphics.CGFloat) -> __C.UIFont in FBAudienceNetwork(FBAudienceNetwork.o)
    115.           @objc static FBAudienceNetwork.FBAdFont.fontSizeTiny.getter : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    116.           @objc static FBAudienceNetwork.FBAdFont.fontSizeExtraSmall.getter : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    117.           @objc static FBAudienceNetwork.FBAdFont.fontSizeSmall.getter : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    118.           @objc static FBAudienceNetwork.FBAdFont.fontSizeMedium.getter : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    119.           @objc static FBAudienceNetwork.FBAdFont.fontSizeLarge.getter : CoreGraphics.CGFloat in FBAudienceNetwork(FBAudienceNetwork.o)
    120.           ...
    121.       "__swift_FORCE_LOAD_$_swiftCoreMedia", referenced from:
    122.           __swift_FORCE_LOAD_$_swiftCoreMedia_$_FBAudienceNetwork in FBAudienceNetwork(FBAudienceNetwork.o)
    123.          (maybe you meant: __swift_FORCE_LOAD_$_swiftCoreMedia_$_FBAudienceNetwork)
    124.     ld: symbol(s) not found for architecture arm64
    125.     clang: error: linker command failed with exit code 1 (use -v to see invocation)
    126.    
    127.    
    128.  
    What can I do to make the build pass ?
     
  2. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    139
    Hey @rbitard,

    Could you share the Podfile and Podfile.lock files from the generated iOS build folder? Thanks!
     
    rbitard likes this.
  3. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    thanks for your answer @DeclanMcPartlin, how can I do that with unity cloud build ? I searched the settings, artifacts or anything without success
     
  4. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    If I build on windows (it fails as expected when trying to launch xcode) I do have a podfile but not podfile.lock
     
  5. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    Code (CSharp):
    1. source 'https://github.com/CocoaPods/Specs.git'
    2. platform :ios, '11.0'
    3.  
    4.  
    5. target 'UnityFramework' do
    6.  
    7.   pod 'Protobuf'
    8.  
    9.   pod 'UnityMediationAdColonyAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    10.  
    11.   pod 'UnityMediationAdmobAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    12.  
    13.   pod 'UnityMediationAppLovinAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    14.  
    15.   pod 'UnityMediationFacebookAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    16.  
    17.   pod 'UnityMediationIronSourceAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    18.  
    19.   pod 'UnityMediationSdk', '~> 0.5.0', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    20.  
    21.   pod 'UnityMediationUnityAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    22.  
    23.   pod 'UnityMediationVungleAdapter', :source => 'https://github.com/Unity-Technologies/unity-mediation-cocoapods-prod.git'
    24.  
    25. end
    26.  
    27.  
    28.  
    29. use_frameworks!
    30.  
    31. target 'Unity-iPhone' do
    32. end
    33.  
    34. post_install do |installer|
    35.   applicationTargets = [
    36.     'Pods-Unity-iPhone',
    37.   ]
    38.   libraryTargets = [
    39.     'Pods-UnityFramework',
    40.   ]
    41.  
    42.   embedded_targets = installer.aggregate_targets.select { |aggregate_target|
    43.     libraryTargets.include? aggregate_target.name
    44.   }
    45.   embedded_pod_targets = embedded_targets.flat_map { |embedded_target| embedded_target.pod_targets }
    46.   host_targets = installer.aggregate_targets.select { |aggregate_target|
    47.     applicationTargets.include? aggregate_target.name
    48.   }
    49.  
    50.   host_targets.each do |host_target|
    51.     host_target.xcconfigs.each do |config_name, config_file|
    52.       host_target.pod_targets.each do |pod_target|
    53.         if embedded_pod_targets.include? pod_target
    54.           pod_target.specs.each do |spec|
    55.             if spec.attributes_hash['ios'] != nil
    56.               frameworkPaths = spec.attributes_hash['ios']['vendored_frameworks']
    57.             else
    58.               frameworkPaths = spec.attributes_hash['vendored_frameworks']
    59.             end
    60.             if frameworkPaths != nil
    61.               frameworkNames = Array(frameworkPaths).map(&:to_s).map do |filename|
    62.                 extension = File.extname filename
    63.                 File.basename filename, extension
    64.               end
    65.               frameworkNames.each do |name|
    66.                 puts "Removing #{name} from OTHER_LDFLAGS of target #{host_target.name}"
    67.                 config_file.frameworks.delete(name)
    68.               end
    69.             end
    70.           end
    71.         end
    72.       end
    73.       xcconfig_path = host_target.xcconfig_path(config_name)
    74.       config_file.save_as(xcconfig_path)
    75.     end
    76.   end
    77. end
    78.  
     
  6. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    139
    @rbitard,

    Thanks for sharing this with us. Would you have a machine running OS X available by any chance? I'm asking in case its possible for us to get the Podfile.lock file as well locally, and if you can reproduce this locally as well.

    Thanks!
     
  7. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    @DeclanMcPartlin, unfortunately no, I tested various things at the moment with no success.
    It's a shame if I have to rent a mac :/
     
  8. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    139
    Hey @rbitard,

    I have a strong suspicion that the issue is due to the cocoapods version being used. I checked with the cloud build team, and they mentioned this: They can give a try using Ruby 2.7.4 by changing the Ruby version in the dashboard.

    Give that a go, and see if that works for you. Thanks!
     
  9. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    @DeclanMcPartlin thanks for your answer, I already did that to no success :(
    (I believe it was the cloud team too that told me to do that :))
    upload_2022-8-23_17-31-53.png
     
  10. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    I'll rent a mac and try to do a local build and report
     
    DeclanMcPartlin likes this.
  11. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you test with a small project that reproduces? If so, you could remove the /Library folder and zip and upload the project here for us to test also (I'll give it a go on my Mac)
     
  12. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    first of all it says that it needed some package ios 14 support package (I didn't know that until I rented a mac).
    But there is more, when I build it fails when mediation tries to update cocoapods, might be a machine configuration problem
     
  13. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    Code (CSharp):
    1. OS framework addition failed due to a CocoaPods installation failure. This will will likely result in an non-functional Xcode project.
    2.  
    3. 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.
    4.  
    5. pod install output:
    6.  
    7.  
    8.  
    9.     [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    10.     Consider adding the following to ~/.profile:
    11.  
    12.     export LANG=en_US.UTF-8
    13.     [0m
    14. /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
    15.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `unicode_normalize'
    16.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `installation_root'
    17.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:226:in `podfile_path'
    18.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:105:in `markdown_podfile'
    19.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:30:in `report'
    20.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:66:in `report_error'
    21.    from /Users/Romain/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:396:in `handle_exception'
    22.     from /Users/Romain/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:337:in `rescue in run'
    23.    from /Users/Romain/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:324:in `run'
    24.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
    25.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
    26.     from /usr/local/bin/pod:23:in `load'
    27.    from /usr/local/bin/pod:23:in `<main>'
    28. /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
    29.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `unicode_normalize'
    30.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:166:in `installation_root'
    31.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:226:in `podfile_path'
    32.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/config.rb:205:in `podfile'
    33.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
    34.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:46:in `run'
    35.    from /Users/Romain/.gem/ruby/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
    36.     from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
    37.    from /Users/Romain/.gem/ruby/2.6.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
    38.     from /usr/local/bin/pod:23:in `load'
    39.    from /usr/local/bin/pod:23:in `<main>'
    40.  
    41.  
    42.  
    43. pod repo update output:
    44.  
    45.  
    46.  
    47.     [33mWARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
    48.     Consider adding the following to ~/.profile:
    49.  
    50.     export LANG=en_US.UTF-8
    51.     [0m
    52.  
    53. UnityEngine.Debug:LogError (object)
    54. Google.Logger:Log (string,Google.LogLevel)
    55. Google.IOSResolver:Log (string,bool,Google.LogLevel)
    56. Google.IOSResolver:OnPostProcessInstallPods (UnityEditor.BuildTarget,string)
    57. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun () (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:180)
    58.  
     
  14. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    Solved with this
    https://stackoverflow.com/a/69395720/4610655

    (exporting
    export LANG=en_US.UTF-8
    export LANGUAGE=en_US.UTF-8
    export LC_ALL=en_US.UTF-8
    to terminal profiles, in my case I did on zsh, bashrc and bash_profile
    )
     
  15. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    I have a lot of errors, I remember getting them on cloud build too at some point

    /Users/Romain/Desktop/FrenchCrapette/builds/Pods/Pods.xcodeproj warning project: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.0.99.

    upload_2022-9-20_10-7-10.png
     
  16. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    I'm trying to fix the build on the mac but that kind of steps I'm taking can't be done on unity cloud builds right ?
     
  17. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    139
    Hey @rbitard,

    Thanks a bunch for checking this out, I've reached out to the Cloud Build team and will let you know.

    Thanks!
     
  18. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    139
    It appears what you have shared here are actually warnings, not errors, can you build locally?
     
  19. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    139
    The Cloud Build team confirmed that these flags are set correctly in their system also.
     
  20. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    yeah, I managed to build locally, but I can't test it on the rented mac it's way too slow
     
  21. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    When I build locally I just have this issue on all my adapters
    /builds/Pods/Pods.xcodeproj warning project: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.0.99.
     
  22. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    But when I build on unity cloud build it has errors
     
  23. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    When I do an archive I do have an error
    error build: '/Library/Developer/Xcode/DerivedData/Unity-iPhone-chjpxtroauejvtcvkjncxclskvja/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/Romain/Library/Developer/Xcode/DerivedData/Unity-iPhone-chjpxtroauejvtcvkjncxclskvja/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/PromisesObjC/FBLPromises.framework/FBLPromises' for architecture arm64

    maybe that's the problem they have when building with unity cloud build
     
  24. DeclanMcPartlin

    DeclanMcPartlin

    Unity Technologies

    Joined:
    Nov 19, 2020
    Posts:
    139
    Hey @rbitard,

    The issue you're facing there is a known issue regarding Cocoapods + Xcode 14.0, the solution has been provided here. It looks like others are having issues with this Cocoapods + Xcode combination also.

    Are you still getting these errors when building from Cloud Build?

    Thanks for reaching out!
     
  25. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    I don't know I'll push a new build with bitcode disabled programatically to see where it fails since it worked locally
     
  26. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    I managed to make the build pass but it fails on my post-build.sh

    26109: [2022-10-04T11:09:23.146Z] - 7.1.1.2.7.4 - INFO: Executing Script at Assets/_Scripts/post-build.bash
    26110: [2022-10-04T11:09:23.146Z] - 7.1.1.2.7.4 - INFO: "/BUILD_PATH/rbitard.french-crapette.default-ios-1/./Assets/_Scripts/post-build.bash" "/BUILD_PATH/rbitard.french-crapette.default-ios-1/./temp20221004-6393-13r5nau" "/BUILD_PATH/rbitard.french-crapette.default-ios-1/.build/last/default-ios-1"
    26111: Uploading IPA to Appstore Connect...
    26112: 2022-10-04 04:09:28.743 *** Error: Error uploading '/BUILD_PATH/rbitard.french-crapette.default-ios-1/.build/last/default-ios/build.ipa'.
    26113: 2022-10-04 04:09:28.743 *** Error: Unable to upload archive. The file '/BUILD_PATH/rbitard.french-crapette.default-ios-1/.build/last/default-ios/build.ipa' cannot be found. (-43)
    26114: {
    I used https://github.com/Vonak/Unity-CloudBuild-Push-AppStore/blob/master/post-build.bash

    and as a target name I used "default-ios" which seems to be the problem here since it looks like it needed default-ios-1
     
  27. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    67
    I renamed my build to "iosBuild", do you know if I need to pass iosBuild in my environment variables or iosBuild-1 ?

    edit:looks like the default name bugs out, here with iosBuild it seems to work (I'll wait for the entire process to finish to be sure)
     
    Last edited: Oct 4, 2022
unityunity