Undefined symbol: _sampleTextMethod, Undefined symbol: _sampleTextMethod
hello guys i'm trying to build this unity game to Xcode but I'm facing this problem
Ld /Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Binary/ProductName normal armv7 (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Volumes/ESD-USB/ring\ off\ ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target armv7-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -L/Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/GoogleUtilities -L/Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/nanopb -L/Volumes/ESD-USB/ring\ off\ ios -L/Volumes/ESD-USB/ring\ off\ ios/Libraries -F/Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -F/Volumes/ESD-USB/ring\ off\ ios/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current -F/Volumes/ESD-USB/ring\ off\ ios/Pods/GoogleAppMeasurement/Frameworks -filelist /Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName.LinkFileList -Xlinker -map -Xlinker /Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/ProductName-LinkMap-normal-armv7.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -Xlinker -final_output -Xlinker /Applications/ProductName.app/ProductName -stdlib=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -lGoogleUtilities -lc++ -lnanopb -lsqlite3 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework GoogleAppMeasurement -framework GoogleMobileAds -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -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 -weak_framework Metal -lPods-Unity-iPhone -Xlinker -dependency_info -Xlinker /Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/ProductName_dependency_info.dat -o /Users/macbookpro/Library/Developer/Xcode/DerivedData/Unity-iPhone-fhjcetkothsmrhhfnmnvzasillqn/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Binary/ProductName
Undefined symbols for architecture armv7: "_sampleTextMethod", referenced from: _Share_sampleTextMethod_mBA065E3779A5E446AF6927E4E79380FA21403013 in Bulk_Assembly-CSharp_2.o _Share_OniOSTextSharingClick_m029A41CED8D000B4A81141AF5965E3112AA4AF2B in Bulk_Assembly-CSharp_2.o (maybe you meant: _Share_sampleTextMethod_mBA065E3779A5E446AF6927E4E79380FA21403013) "_sampleMethod", referenced from: _Share_sampleMethod_m1457071C5F33155B168510109D8F15AAA43D6676 in Bulk_Assembly-CSharp_2.o (maybe you meant: _Share_sampleMethod_m1457071C5F33155B168510109D8F15AAA43D6676) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Answer by getconnect2ali · Jul 29, 2020 at 12:20 PM
Same error I am also looking for the solution, do let me know if you get the solution. @getconnect2ali
Answer by studiogameever · Aug 24, 2020 at 12:03 PM
I found the solution, it was a problem with my Share.cs script, i removed it and boom the problem was solved
Your answer
Follow this Question
Related Questions
Undefined symbols for architecture arm64 - Unity Ads 1 Answer
Undefined symbols for architecture arm64 0 Answers
How to fix xcode banner position error (unity ads) 2 Answers
iOs build fails on 5.3 1 Answer
Xcode7.3 iPad Simulator Failure 0 Answers