Undefined symbols for architecture arm64, again

Just last week I upgraded to 2.02.11 to try and fix an intermittent build issue. That one was very rare to begin with, so I’m not quite sure if it worked. Seems okay so far.

I then immediately ran into issues with bitcode, but managed to disable that and now we’re back at linker errors:

Ld /Volumes/Bulk/xcode/Build/ReleaseForRunning-iphoneos/UnityFramework.framework/UnityFramework normal (in target 'UnityFramework' from project 'Unity-iPhone')
    cd /Volumes/Bulk/jenkins/jobs/tilebreaker-pipeline/builds/494/output
    /Volumes/Bulk/xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios11.0 -dynamiclib -isysroot /Volumes/Bulk/xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -L/Volumes/Bulk/xcode/Build/ReleaseForRunning-iphoneos -L/Volumes/Bulk/jenkins/jobs/tilebreaker-pipeline/builds/494/output/Libraries -L/Volumes/Bulk/jenkins/jobs/tilebreaker-pipeline/builds/494/output/Libraries/Plugins/FMOD/platforms/ios/lib -F/Volumes/Bulk/xcode/Build/ReleaseForRunning-iphoneos -filelist /Volumes/Bulk/xcode/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework.LinkFileList -install_name @rpath/UnityFramework.framework/UnityFramework -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -map -Xlinker /Volumes/Bulk/xcode/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-LinkMap-normal-arm64.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Volumes/Bulk/xcode/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_lto.o -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -liPhone-lib -framework Metal -framework Security -framework MediaToolbox -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework AVKit -framework CFNetwork -framework CoreGraphics -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework OpenAL -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp /Volumes/Bulk/jenkins/jobs/tilebreaker-pipeline/builds/494/output/Libraries/baselib.a -lfmodstudiounityplugin -lresonanceaudio -weak_framework GameController -Xlinker -dependency_info -Xlinker /Volumes/Bulk/xcode/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_dependency_info.dat -o /Volumes/Bulk/xcode/Build/ReleaseForRunning-iphoneos/UnityFramework.framework/UnityFramework

Undefined symbols for architecture arm64:
  "_objc_msgSend$isInputAvailable", referenced from:
      l7924 in libfmodstudiounityplugin.a(libfmodstudio_iphoneos.a-arm64-master.o)
  "_objc_msgSend$outputNumberOfChannels", referenced from:
      l7913 in libfmodstudiounityplugin.a(libfmodstudio_iphoneos.a-arm64-master.o)
  "_objc_msgSend$sharedInstance", referenced from:
      l7913 in libfmodstudiounityplugin.a(libfmodstudio_iphoneos.a-arm64-master.o)
      l7924 in libfmodstudiounityplugin.a(libfmodstudio_iphoneos.a-arm64-master.o)
  "_objc_msgSend$category", referenced from:
      l7924 in libfmodstudiounityplugin.a(libfmodstudio_iphoneos.a-arm64-master.o)
  "_objc_msgSend$sampleRate", referenced from:
      l7913 in libfmodstudiounityplugin.a(libfmodstudio_iphoneos.a-arm64-master.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Last time, it required an XCode upgrade but that’s such an ordeal I’d like to make sure that it’s required before taking the leap?

iOS SDK: 15.5
Xcode 13.4.1
fmod 2.02.11
Unity 2021.3.10f1

I got impatient and decided to upgrade XCode to 14.2 and it did fix things!

1 Like

Good to hear it worked!

1 Like