- Olivier Constance
- Posts: 9
- Joined:
Build IOS Failed Apple Mach -O Linker
Hi,
When I build my app on Ipad, I get this error: "symbol(s) not found for architecture xxx" .
I read the following topics but unfortunately couldn't find anything to solve my problem:
viewtopic.php?f=3&t=1603&p=9118&hilit=b ... rror#p9118
viewtopic.php?f=3&t=565&p=2920&hilit=bu ... rror#p2920
viewtopic.php?f=3&t=565&p=2930&hilit=bu ... rror#p2930.
I'm using NoesisGUI 2.2.2 with Unity 2018.2.3
I'm sorry if I missed something and I'm looking forward to your response.
Kind regards.
When I build my app on Ipad, I get this error: "symbol(s) not found for architecture xxx" .
I read the following topics but unfortunately couldn't find anything to solve my problem:
viewtopic.php?f=3&t=1603&p=9118&hilit=b ... rror#p9118
viewtopic.php?f=3&t=565&p=2920&hilit=bu ... rror#p2920
viewtopic.php?f=3&t=565&p=2930&hilit=bu ... rror#p2930.
I'm using NoesisGUI 2.2.2 with Unity 2018.2.3
I'm sorry if I missed something and I'm looking forward to your response.
Kind regards.
Re: Build IOS Failed Apple Mach -O Linker
could you paste the exact error? If you are trying the emulator, it is not supported.
- Olivier Constance
- Posts: 9
- Joined:
Re: Build IOS Failed Apple Mach -O Linker
Hi
This the log generated by XCode when I build on my iPad (iOS 11) :
This the log generated by XCode when I build on my iPad (iOS 11) :
Code: Select all
Showing All Errors Only
Ld /Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Products/ReleaseForRunning-iphoneos/psc.app/psc normal arm64
cd /Users/dev/Documents/iOS/PSC/PSCIOS/PSCXcodeARM
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk -L/Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Products/ReleaseForRunning-iphoneos -L/Users/dev/Documents/iOS/PSC/PSCIOS/PSCXcodeARM -L/Users/dev/Documents/iOS/PSC/PSCIOS/PSCXcodeARM/Libraries -L/Users/dev/Documents/iOS/PSC/PSCIOS/PSCXcodeARM/Libraries/NoesisGUI/Plugins/Libraries/IOS -F/Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Products/ReleaseForRunning-iphoneos -filelist /Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/psc.LinkFileList -Xlinker -map -Xlinker /Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/psc-LinkMap-normal-arm64.txt -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/psc_lto.o -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -framework Security -framework MediaToolbox -liPhone-lib -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework MediaPlayer -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp -lNoesis -weak_framework Metal -Xlinker -dependency_info -Xlinker /Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/psc_dependency_info.dat -o /Users/dev/Library/Developer/Xcode/DerivedData/Unity-iPhone-dmcvwxoxgznrdmdxbdkaronakfrd/Build/Products/ReleaseForRunning-iphoneos/psc.app/psc
Undefined symbols for architecture arm64:
"_Noesis_SetSoftwareKeyboardCallbacks", referenced from:
_GUI_Noesis_SetSoftwareKeyboardCallbacks__m2710246541 in Bulk_Assembly-CSharp_9.o
_GUI_Noesis_SetSoftwareKeyboardCallbacks_m1097357511 in Bulk_Assembly-CSharp_9.o
(maybe you meant: _GUI_Noesis_SetSoftwareKeyboardCallbacks_m1097357511, _GUI_Noesis_SetSoftwareKeyboardCallbacks__m2710246541 , _GUI_Noesis_SetSoftwareKeyboardCallbacks__m2710246541_MetadataUsageId )
"_Noesis_SetUpdateCursorCallback", referenced from:
_GUI_Init_m199942865 in Bulk_Assembly-CSharp_9.o
_GUI_Noesis_SetUpdateCursorCallback_m80189730 in Bulk_Assembly-CSharp_9.o
_GUI_Noesis_SetUpdateCursorCallback__m2806556290 in Bulk_Assembly-CSharp_9.o
(maybe you meant: _GUI_Noesis_SetUpdateCursorCallback__m2806556290_MetadataUsageId, _GUI_Noesis_SetUpdateCursorCallback_m80189730 , _GUI_Noesis_SetUpdateCursorCallback__m2806556290 )
"_Noesis_RegisterErrorCallback", referenced from:
_Error_RegisterCallback_m2605799531 in Bulk_Assembly-CSharp_7.o
_Error_Noesis_RegisterErrorCallback_m2173364905 in Bulk_Assembly-CSharp_7.o
(maybe you meant: _Error_Noesis_RegisterErrorCallback_m2173364905)
"_Noesis_RegisterView", referenced from:
_NoesisRenderer_RegisterView_m683331515 in Bulk_Assembly-CSharp_19.o
_NoesisRenderer_Noesis_RegisterView_m982969906 in Bulk_Assembly-CSharp_19.o
(maybe you meant: _NoesisRenderer_Noesis_RegisterView_m982969906)
"_Noesis_FontProviderSetCallback", referenced from:
_NoesisFontProvider__ctor_m715005741 in Bulk_Assembly-CSharp_19.o
_NoesisFontProvider_Noesis_FontProviderSetCallback_m42924477 in Bulk_Assembly-CSharp_19.o
(maybe you meant: _NoesisFontProvider_Noesis_FontProviderSetCallback_m42924477)
"_Noesis_View_SetTessellationQuality", referenced from:
_View_Noesis_View_SetTessellationQuality__m1185258692 in Bulk_Assembly-CSharp_19.o
_View_Noesis_View_SetTessellationQuality_m1898608579 in Bulk_Assembly-CSharp_19.o
(maybe you meant: _View_Noesis_View_SetTessellationQuality__m1185258692, _View_Noesis_View_SetTessellationQuality__m1185258692_MetadataUsageId , _View_Noesis_View_SetTessellationQuality_m1898608579 )
"_Noesis_CreateUIPropertyMetadata", referenced from:
_UIPropertyMetadata_Noesis_CreateUIPropertyMetadata__m463228864 in Bulk_Assembly-CSharp_19.o
_UIPropertyMetadata_Noesis_CreateUIPropertyMetadata_m4123629681 in Bulk_Assembly-CSharp_19.o
(maybe you meant: _UIPropertyMetadata_Noesis_CreateUIPropertyMetadata__m463228864, _UIPropertyMetadata_Noesis_CreateUIPropertyMetadata__m463228864_RuntimeMethod_var , _UIPropertyMetadata_Noesis_CreateUIPropertyMetadata__m463228864_MetadataUsageId , _UIPropertyMetadata_Noesis_CreateUIPropertyMetadata_m4123629681 )
"_Noesis_CreatePropertyMetadata", referenced from:
_PropertyMetadata_Noesis_CreatePropertyMetadata__m4059791043 in Bulk_Assembly-CSharp_13.o
_PropertyMetadata_Noesis_CreatePropertyMetadata_m472135878 in Bulk_Assembly-CSharp_13.o
(maybe you meant: _PropertyMetadata_Noesis_CreatePropertyMetadata__m4059791043_MetadataUsageId, _PropertyMetadata_Noesis_CreatePropertyMetadata__m4059791043 , _PropertyMetadata_Noesis_CreatePropertyMetadata__m4059791043_RuntimeMethod_var , _PropertyMetadata_Noesis_CreatePropertyMetadata_m472135878 )
"_SWIGRegisterStringCallback_NoesisGUI_", referenced from:
_SWIGStringHelper_SWIGRegisterStringCallback_NoesisGUI__m2701748309 in Bulk_Assembly-CSharp_13.o
_SWIGStringHelper_Init_m3474386019 in Bulk_Assembly-CSharp_13.o
(maybe you meant: _SWIGStringHelper_SWIGRegisterStringCallback_NoesisGUI__m2701748309)
"_SWIGRegisterExceptionCallbacks_NoesisGUI_", referenced from:
_SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_NoesisGUI__m3228102839 in Bulk_Assembly-CSharp_13.o
(maybe you meant: _SWIGExceptionHelper_SWIGRegisterExceptionCallbacks_NoesisGUI__m3228102839)
"_new_GridViewColumnCollection__SWIG_1", referenced from:
_NoesisGUI_PINVOKE_new_GridViewColumnCollection__SWIG_1_m712170710 in Bulk_Assembly-CSharp_12.o
(maybe you meant: _NoesisGUI_PINVOKE_new_GridViewColumnCollection__SWIG_1_m712170710)
"_GridViewColumn_SetMeasureState", referenced from:
_NoesisGUI_PINVOKE_GridViewColumn_SetMeasureState_m3625941899 in Bulk_Assembly-CSharp_12.o
(maybe you meant: _GridViewColumn_SetMeasureState_m1560451143_MetadataUsageId, _NoesisGUI_PINVOKE_GridViewColumn_SetMeasureState_m3625941899 ,
..........................................................................................................................................................................................................................................................................................................................
"_UnbindEvent_UIElement_TouchMove", referenced from:
_NoesisGUI_PINVOKE_UnbindEvent_UIElement_TouchMove_m969296208 in Bulk_Assembly-CSharp_12.o
(maybe you meant: _NoesisGUI_PINVOKE_UnbindEvent_UIElement_TouchMove_m969296208)
"_BindEvent_Hyperlink_RequestNavigate", referenced from:
_NoesisGUI_PINVOKE_BindEvent_Hyperlink_RequestNavigate_m3360869521 in Bulk_Assembly-CSharp_12.o
(maybe you meant: _NoesisGUI_PINVOKE_BindEvent_Hyperlink_RequestNavigate_m3360869521)
"_Collection_Set", referenced from:
_NoesisGUI_PINVOKE_Collection_Set_m1701925577 in Bulk_Assembly-CSharp_12.o
(maybe you meant: _Collection_Set_m627211269_MetadataUsageId, _Collection_Set_m627211269_RuntimeMethod_var , _Collection_Set_m627211269 , _NoesisGUI_PINVOKE_Collection_Set_m1701925577 )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing first 200 notices only
Showing first 200 errors only
Re: Build IOS Failed Apple Mach -O Linker
Just to verify everything is right, I tried installing one of the samples (ControlGallery) to iPad (12.2) using Unity 2018.3.11f1. As explained in the tutorial, I had to disable Bitcode when building with Xcode. After that, everything is compiling right:
Could you please try the same sample in a clean project + NoesisGUI ?
Code: Select all
Ld /Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Products/ReleaseForRunning-iphoneos/ProductName.app/ProductName normal arm64 (in target: Unity-iPhone)
cd /Users/Jesus/Desktop/Unity/ios
export IPHONEOS_DEPLOYMENT_TARGET=9.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk -L/Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Products/ReleaseForRunning-iphoneos -L/Users/Jesus/Desktop/Unity/ios -L/Users/Jesus/Desktop/Unity/ios/Libraries -L/Users/Jesus/Desktop/Unity/ios/Libraries/NoesisGUI/Plugins/Libraries/iOS -F/Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Products/ReleaseForRunning-iphoneos -filelist /Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ProductName.LinkFileList -Xlinker -map -Xlinker /Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/ProductName-LinkMap-normal-arm64.txt -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ProductName_lto.o -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -framework Security -framework MediaToolbox -liPhone-lib -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 OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp -lNoesis -Xlinker -dependency_info -Xlinker /Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ProductName_dependency_info.dat -o /Users/Jesus/Library/Developer/Xcode/DerivedData/Unity-iPhone-gmaxjfsqwjtuwkasywxcdwcjqdwd/Build/Products/ReleaseForRunning-iphoneos/ProductName.app/ProductName
- Olivier Constance
- Posts: 9
- Joined:
Re: Build IOS Failed Apple Mach -O Linker
Hi,
I tried installing two samples in two project different. Both work fine. So I tried to reupload the Noesis package again and I understood the problem.
I picked the wrong package (I have two package: one is NoesisGUI-2.1.0f1.unitypackage and the other is NoesisGUI-2.2.2.unitypackage).
I feel ashamed of this mistake.
Now it is working.
Have a nice day.
Best regards.
I tried installing two samples in two project different. Both work fine. So I tried to reupload the Noesis package again and I understood the problem.
I picked the wrong package (I have two package: one is NoesisGUI-2.1.0f1.unitypackage and the other is NoesisGUI-2.2.2.unitypackage).
I feel ashamed of this mistake.
Now it is working.
Have a nice day.
Best regards.
Re: Build IOS Failed Apple Mach -O Linker
Great! Thanks for the feedback!
Who is online
Users browsing this forum: Bing [Bot] and 2 guests