- Issue category: Unity Build / Xcode Project File
- Device type & OS version: iOS 11+
- Host machine & OS version: Windows 10 21H2 (for Unity build) / Mac Monterey 12.4 (for Xcode build)
- Issue Environment : Unity / Xcode
- Xcode version: 13.4.1
- ARDK version: 2.1.0
- Unity version: 2021.3.6f1
Hello! I’m building out my first project on Unity/Lightship/iOS (the ball tutorial) with no successful builds so far. When attempting to build in Xcode I receive the following two errors, with what I believe is the failed ld
command.
ld: framework not found null
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Framework not found null
Ld /Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/Build/Products/ReleaseForRunning-iphoneos/UnityFramework.framework/UnityFramework normal (in target 'UnityFramework' from project 'Unity-iPhone')
cd /Volumes/EX-01/Builds_TemplateDemo5
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios11.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -L/Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/Build/Products/ReleaseForRunning-iphoneos -L/Volumes/EX-01/Builds_TemplateDemo5/Libraries -F/Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/Build/Products/ReleaseForRunning-iphoneos -F/Volumes/EX-01/Builds_TemplateDemo5/Frameworks/ARDK/Plugins/unity_exports/ardk_client_platform/Plugins/iOS -filelist /Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/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 -map -Xlinker /Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-LinkMap-normal-arm64.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_lto.o -fembed-bitcode-marker -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/EX-01/Builds_TemplateDemo5/Libraries/baselib.a -framework infinitam -framework ardk_client_platform -framework null -framework CoreLocation -weak_framework GameController -weak_framework UserNotifications -Xlinker -dependency_info -Xlinker /Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/arm64/UnityFramework_dependency_info.dat -o /Users/rthur/Library/Developer/Xcode/DerivedData/Unity-iPhone-dqrrkphwiuenotcejoykrbfmgcuv/Build/Products/ReleaseForRunning-iphoneos/UnityFramework.framework/UnityFramework
From what I’ve found, this null framework reference stems from an error in the Unity-iPhone.xcodeproj\project.pbxproj
file. So I took a look in there an did find several references to a “null.framework” that doesn’t exist (as far as I know):
line 149 7FF5444A90061A16DCED3C2A /* null.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1C8E42729FAC82007752925E /* null.framework */; };
line 424 1C8E42729FAC82007752925E /* null.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = null.framework; path = System/Library/Frameworks/null.framework; sourceTree = SDKROOT; };
line 809 7FF5444A90061A16DCED3C2A /* null.framework in Frameworks */,
line 883 1C8E42729FAC82007752925E /* null.framework */,
And this is where the trail went cold. My best guess is that this is some sort of misconfiguration in my Unity build, but I haven’t found any further information on what it might be. Any insights as to what might be causing these null framework references to be generated would be much appreciated!