SpaceMadness / lunar-unity-plugin

A UNIX/Quake3 style command line interface to Unity editor
74 stars 8 forks source link

XCode Build Error - symbol(s) not found for architecture armv7 #7

Open slender9168 opened 6 years ago

slender9168 commented 6 years ago

Hi, This error shows when i build the xcode project ( the unity build works without errors )

Scripting Backend : IL2CPP iOS/Android Version: target minimum ios 7 Device model: xcode won't build the project ( without any device ) Unity version: 2017.1.5 Host OS version: MacOS Mojave 10.14 The list of the 3rd party plugins you use in the project Game Analytics Facebook SDK

Xcode version: 10.1 (latest)

Ld /Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/snakeIO normal armv7 (in target: Unity-iPhone) cd /Users/air2015/Documents/b_unity_xcode/2018/SnakeIO/2018_11_05_SnakeIOv4dup_after_unity_restart export IPHONEOS_DEPLOYMENT_TARGET=7.0 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Products/ReleaseForRunning-iphoneos -L/Users/air2015/Documents/b_unity_xcode/2018/SnakeIO/2018_11_05_SnakeIOv4dup_after_unity_restart -L/Users/air2015/Documents/b_unity_xcode/2018/SnakeIO/2018_11_05_SnakeIOv4dup_after_unity_restart/Libraries -F/Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Products/ReleaseForRunning-iphoneos -filelist /Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/snakeIO.LinkFileList -Xlinker -map -Xlinker /Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/snakeIO-LinkMap-normal-armv7.txt -miphoneos-version-min=7.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/snakeIO_lto.o -fembed-bitcode-marker -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -weak_framework CoreMotion -weak-lSystem -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 -weak_framework Metal -Xlinker -dependency_info -Xlinker /Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/snakeIO_dependency_info.dat -o /Users/air2015/Library/Developer/Xcode/DerivedData/Unity-iPhone-fuktuvfngaewbagjgdymkyxavkur/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/Unity-iPhone.build/Objects-normal/armv7/snakeIO

Undefined symbols for architecture armv7: "_lunar_console_destroy", referenced from: _PlatformIOS_lunar_console_destroy_m456247411 in Bulk_Assembly-CSharp_3.o _PlatformIOS_Destroy_m267932504 in Bulk_Assembly-CSharp_3.o (maybe you meant: PlatformIOSlunar_console_destroy_m456247411) "___lunar_console_action_unregister", referenced from: PlatformIOSlunar_console_action_unregister_m4106613318 in Bulk_Assembly-CSharp_3.o _PlatformIOS_OnActionUnregistered_m3295390267 in Bulk_Assembly-CSharp_3.o (maybe you meant: _PlatformIOS_lunar_console_action_unregisterm4106613318) "lunar_console_action_register", referenced from: _PlatformIOS_lunar_console_action_register_m4048835623 in Bulk_Assembly-CSharp_3.o _PlatformIOS_OnActionRegistered_m1900775222 in Bulk_Assembly-CSharp_3.o (maybe you meant: PlatformIOSlunar_console_action_register_m4048835623) "_lunar_console_hide", referenced from: _PlatformIOS_lunar_console_hide_m3448988597 in Bulk_Assembly-CSharp_3.o _PlatformIOS_HideConsole_m3429723875 in Bulk_Assembly-CSharp_3.o (maybe you meant: PlatformIOSlunar_console_hide_m3448988597) "_lunar_console_clear", referenced from: PlatformIOSlunar_console_clear_m2836004333 in Bulk_Assembly-CSharp_3.o _PlatformIOS_ClearConsole_m256278752 in Bulk_Assembly-CSharp_3.o (maybe you meant: _PlatformIOS_lunar_console_clearm2836004333) "lunar_console_cvar_register", referenced from: PlatformIOSlunar_console_cvar_register_m2910225370 in Bulk_Assembly-CSharp_3.o (maybe you meant: _PlatformIOS_lunar_console_cvar_registerm2910225370) "lunar_console_initialize", referenced from: _PlatformIOS_lunar_console_initialize_m2276595959 in Bulk_Assembly-CSharp_3.o (maybe you meant: PlatformIOSlunar_console_initialize_m2276595959) "_lunar_console_show", referenced from: _PlatformIOS_lunar_console_show_m3549014312 in Bulk_Assembly-CSharp_3.o _PlatformIOS_ShowConsole_m2136028423 in Bulk_Assembly-CSharp_3.o (maybe you meant: PlatformIOSlunar_console_show_m3549014312) "___lunar_console_cvar_update", referenced from: PlatformIOSlunar_console_cvar_update_m1306681731 in Bulk_Assembly-CSharp_3.o _PlatformIOS_OnVariableUpdated_m43150681 in Bulk_Assembly-CSharp_3.o (maybe you meant: _PlatformIOS_lunar_console_cvar_updatem1306681731) "lunar_console_log_message", referenced from: _PlatformIOS_lunar_console_log_message_m2405244582 in Bulk_Assembly-CSharp_3.o (maybe you meant: PlatformIOSlunar_console_log_message_m2405244582) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

slender9168 commented 6 years ago

Hi, Thanks for the reply, unfortunately the troubleshooting guide didn't help ( tried adding the EXPORT_IOS_FILES scripting defined symbol & creating a fresh xcode export )

slender9168 commented 6 years ago

The issue was caused by ProBuilder post processing script, the issue was resolved once i removed proBuilder from the project

weeeBox commented 6 years ago

How did you integrate ProBuilder? Is it through the package manager of through the Asset Store?

slender9168 commented 6 years ago

@weeeBox through the assetstore but deleted it because it interfered with some other plugin