XCode link error: Unsafe mutable addressor - xcode

My app was working great until about two hours ago when I got a link error regarding an unsafe mutable addressor.
What I've tried:
Clean and build, deintegrated and reinstalled my cocoapods, deleted derived data, restart XCode, restart Mac
None of this has helped. Can anyone tell me from the error text what the problem is?
Ld /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/Zoomoji.app/Zoomoji normal (in target 'Zoomoji' from project 'Zoomoji')
cd /Users/eligarfinkel/Documents/Zoomoji
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios15.4 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -L/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/usr/lib/swift -F/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos -F/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/SwiftSpeech -F/Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/SwiftySound -filelist /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji.swiftmodule -framework AVFoundation -framework Foundation -framework SwiftSpeech -framework SwiftySound -framework Pods_Zoomoji -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Intermediates.noindex/Zoomoji.build/Debug-iphoneos/Zoomoji.build/Objects-normal/arm64/Zoomoji_dependency_info.dat -o /Users/eligarfinkel/Library/Developer/Xcode/DerivedData/Zoomoji-habngemvvlqbmiajrhdkufqvpnis/Build/Products/Debug-iphoneos/Zoomoji.app/Zoomoji
Undefined symbols for architecture arm64:
"unsafeMutableAddressor of self #1 : Zoomoji.ContentView in Zoomoji.ContentView.body.getter : some", referenced from:
closure #3 () -> () in closure #1 () -> SwiftUI.TupleView<(SwiftUI.Text, SwiftUI.Button<SwiftUI.Text>, <<opaque return type of (extension in SwiftUI):SwiftUI.View.onAppear(perform: (() -> ())?) -> some>>.0, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftSpeech.SwiftSpeech.RecordButton, SwiftSpeech.SwiftSpeech.ViewModifiers.RecordOnHold>, SwiftSpeech.SwiftSpeech.ViewModifiers.OnRecognize>)> in closure #1 () -> SwiftUI.TupleView<(<<opaque return type of (extension in SwiftUI):SwiftUI.View.edgesIgnoringSafeArea(SwiftUI.Edge.Set) -> some>>.0, SwiftUI.VStack<SwiftUI.TupleView<(SwiftUI.Text, SwiftUI.Button<SwiftUI.Text>, <<opaque return type of (extension in SwiftUI):SwiftUI.View.onAppear(perform: (() -> ())?) -> some>>.0, SwiftUI.ModifiedContent<SwiftUI.ModifiedContent<SwiftSpeech.SwiftSpeech.RecordButton, SwiftSpeech.SwiftSpeech.ViewModifiers.RecordOnHold>, SwiftSpeech.SwiftSpeech.ViewModifiers.OnRecognize>)>>)> in Zoomoji.ContentView.body.getter : some in ContentView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I figured it out. I had a double instantiation of a variable. Once I deleted that, the app compiled normally.

Related

Url_launcher: ld: framework not found Flutter

I tried every solution like upgraded flutter, restart system, delete derived data, uninstall and reinstall pods, remove other flags in target but same error.
here is all log
Ld /Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/url_launcher_ios.framework/url_launcher_ios normal (in target 'url_launcher_ios' from project 'Pods')
cd /Users/milesnanton/Desktop/app/float/ios/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios12.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk -<br/>L/Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/url_launcher_ios -F/Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/url_launcher_ios -F/Users/milesnanton/Developer/flutter/bin/cache/artifacts/engine/ios-release/Flutter.xcframework/ios-arm64_armv7 -filelist <br/>/Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/url_launcher_ios.build/Objects-normal/arm64/url_launcher_ios.LinkFileList -install_name #rpath/url_launcher_ios.framework/url_launcher_ios -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/url_launcher_ios.build/Objects-normal/arm64/url_launcher_ios_lto.o -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/url_launcher_ios -fobjc-arc -fobjc-link-runtime -framework Flutter -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/url_launcher_ios.build/Objects-normal/arm64/url_launcher_ios_dependency_info.dat -o /Users/milesnanton/Library/Developer/Xcode/DerivedData/Runner-dwoeqpqugkcdzlebfctpnzmnfsee/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/url_launcher_ios.framework/url_launcher_ios

Integrating OpenCV with XCode - Excluded Architecture

Tried to use OpenCV library in swift.
The library forces me to implement changes below :
Otherwise, without those changes i get an error:
Also in this App i want the user to pick an image from phone's gallery. To handle it, I'm using PHPicker.
However, with Excluded Architectures set, I'm not able to pick any image from the gallery, there's buch of errors/warnings in Terminal.
Without Excluded Architectures app will crash with Error as at second screen.
Any ideas or tips ?
Error from screen
Ld /Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Products/Debug-iphonesimulator/OpenCVTest.app/OpenCVTest normal (in target 'OpenCVTest' from project 'OpenCVTest')
cd /Users/Kacper/Downloads/OpenCVTest
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target arm64-apple-ios12.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.2.sdk -L/Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Products/Debug-iphonesimulator -F/Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Products/Debug-iphonesimulator -F/Users/Kacper/Downloads/OpenCVTest -filelist /Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Intermediates.noindex/OpenCVTest.build/Debug-iphonesimulator/OpenCVTest.build/Objects-normal/arm64/OpenCVTest.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Intermediates.noindex/OpenCVTest.build/Debug-iphonesimulator/OpenCVTest.build/Objects-normal/arm64/OpenCVTest_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Intermediates.noindex/OpenCVTest.build/Debug-iphonesimulator/OpenCVTest.build/Objects-normal/arm64/OpenCVTest.swiftmodule -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Intermediates.noindex/OpenCVTest.build/Debug-iphonesimulator/OpenCVTest.build/OpenCVTest.app-Simulated.xcent -framework opencv2 -framework CoreFoundation -framework Accelerate -framework CoreGraphics -framework AssetsLibrary -framework CoreMedia -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Intermediates.noindex/OpenCVTest.build/Debug-iphonesimulator/OpenCVTest.build/Objects-normal/arm64/OpenCVTest_dependency_info.dat -o /Users/Kacper/Library/Developer/Xcode/DerivedData/OpenCVTest-agzhkmtplgmvfohcejwaizkysxoy/Build/Products/Debug-iphonesimulator/OpenCVTest.app/OpenCVTest
ld: in /Users/Kacper/Downloads/OpenCVTest/opencv2.framework/opencv2(ios_conversions.o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Text formating of error is not my fault!
so, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 I guess that means you need the library built for the simulator, not for the actual target device.
It works when you try compile it, using real iPhone/iPad

ld: library not found for -lDoubleConversion clang: error: linker command failed with exit code 1 (use -v to see invocation) in Xcode

I am developing a react native app. When I build the project in Xcode, the build failed, and here is the error:
Ld /Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Products/Debug-iphonesimulator/BiceUser.app/BiceUser normal (in target 'BiceUser' from project 'BiceUser')
cd /Users/nitieii/Desktop/BiceUserAppProject/ios
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios10.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -L/Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Products/Debug-iphonesimulator -F/Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Products/Debug-iphonesimulator -filelist /Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Intermediates.noindex/BiceUser.build/Debug-iphonesimulator/BiceUser.build/Objects-normal/x86_64/BiceUser.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker #executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Intermediates.noindex/BiceUser.build/Debug-iphonesimulator/BiceUser.build/Objects-normal/x86_64/BiceUser_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lDoubleConversion -lFBReactNativeSpec -lPermission-Camera -lRCT-Folly -lRCTTypeSafety -lRNAWSCognito -lRNCAsyncStorage -lRNCCheckbox -lRNGestureHandler -lRNImageCropPicker -lRNPermissions -lRNSVG -lRNScreens -lRNVectorIcons -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReact-perflogger -lReactCommon -lTOCropViewController -lYoga -lglog -lreact-native-camera -lreact-native-image-picker -lreact-native-netinfo -lreact-native-safe-area-context -lstdc++ -framework AudioToolbox -framework JavaScriptCore -framework MobileCoreServices -framework Photos -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Intermediates.noindex/BiceUser.build/Debug-iphonesimulator/BiceUser.build/BiceUser.app-Simulated.xcent -lPods-BiceUser -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Intermediates.noindex/BiceUser.build/Debug-iphonesimulator/BiceUser.build/Objects-normal/x86_64/BiceUser_dependency_info.dat -o /Users/nitieii/Library/Developer/Xcode/DerivedData/BiceUser-dedbblwkymtlkzciefxyqepnavct/Build/Products/Debug-iphonesimulator/BiceUser.app/BiceUser
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So I post this question to ask how to solve this issue and what is the main reason for this error. Thank you so much!!!!
You need to delete your DerivedData project folder:
'Xcode' -> 'Preferences' -> 'Locations' tab -> At 'Derived Data' click the open icon and delete the folder in Finder.
Then Clean build folder. Also make sure you have xcworkspace open not xcproject and also try pod deintegrate and pod install prior to this from inside the iOS dir of the project.

Flutter Xcode: clang: error: linker command failed with exit code 1 (use -v to see invocation)

I am getting this error while trying to build in Xcode. I tried deleting derived data and restarting Xcode but nothing helped.
ld: framework not found Flutter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is the entire error log:
Ld /Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator/Runner.app/Runner normal x86_64
cd /Users/chaythanyanair/Documents/Qburst/Learn/flutter_poc/ios
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -L/Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator -L/Users/chaythanyanair/Documents/Qburst/Learn/flutter_poc/ios/Pods/EstimoteSDK -L/Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator/Alamofire -L/Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator/SwiftKeychainWrapper -L/Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator/device_info -L/Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator/flutter_secure_storage -L/Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator/shared_preferences -L/Users/chaythanyanair/Documents/Qburst/Learn/flutter_poc/ios/Flutter -F/Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator -F/Users/chaythanyanair/Documents/Qburst/Learn/flutter_poc/ios/Pods/EstimoteSDK/EstimoteSDK -F/Users/chaythanyanair/Documents/Qburst/Learn/flutter_poc/ios/Pods/../../../../flutter/flutter/bin/cache/artifacts/engine/ios -F/Users/chaythanyanair/Documents/Qburst/Learn/flutter_poc/ios/Flutter -filelist /Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.swiftmodule -ObjC -lAlamofire -lSwiftKeychainWrapper -ldevice_info -lflutter_secure_storage -lshared_preferences -framework CoreBluetooth -framework CoreLocation -framework EstimoteSDK -framework Flutter -framework Foundation -framework MobileCoreServices -framework SystemConfiguration -framework UIKit -ObjC -lAlamofire -lSwiftKeychainWrapper -ldevice_info -lflutter_secure_storage -lshared_preferences -framework CoreBluetooth -framework CoreLocation -framework EstimoteSDK -framework Flutter -framework Foundation -framework MobileCoreServices -framework SystemConfiguration -framework UIKit -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Runner.app.xcent -lPods-Runner -Xlinker -dependency_info -Xlinker /Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_dependency_info.dat -o /Users/chaythanyanair/Library/Developer/Xcode/DerivedData/Runner-efsxwbzqcezyswaezzytcnxazinn/Build/Products/Debug-iphonesimulator/Runner.app/Runner
How can I solve this issue?
I change to master channel.
flutter channel master
then run
flutter upgrade
For people coming here in 2020, I experienced this issue, ran the commands in the answer above (flutter channel master, flutter upgrade), and was then required to manually migrate my Xcode project to still work with the new version of Flutter. Info on that available here: https://flutter.dev/docs/development/ios-project-migration. Hope that can be of some help to someone.
Here's what worked for me:
Delete the ios folder completely
In the terminal, type flutter create .
And then try flutter run or press Play in Android Studio.
Try the following command:
flutter upgrade

Swift Linking Error Arm V7

I have been trying for hours to fix this build error.
None of the advice from the dozens of threads I've read has fixed this error. What can I do?
"ld: entry point (_main) undefined. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see >invocation)"
Ld /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon normal arm64
cd /Users/yanayrosen/Desktop/Talon-Iphone-master
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/iPhoneOS9.2.sdk -L/Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Products/Release-iphoneos -L/Users/yanayrosen/Desktop/Talon-Iphone-master/../../../../Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/../iPhoneOS.sdk/usr/lib -F/Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Products/Release-iphoneos -F/Users/yanayrosen/Desktop/Talon-Iphone-master -F/Users/yanayrosen/Desktop/Talon-Iphone-master/Talon -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/../iPhoneOS.sdk/System/Library/Frameworks -filelist /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -fembed-bitcode-marker -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The_Talon.swiftmodule -framework SystemConfiguration -framework StoreKit -framework Security -framework QuartzCore -lz.1 -lsqlite3 -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -Xlinker -dependency_info -Xlinker /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon_dependency_info.dat -o /Users/yanayrosen/Library/Developer/Xcode/DerivedData/The-Talon-ebdutvfwgeagoxgpqbewfvfjaksq/Build/Intermediates/The-Talon.build/Release-iphoneos/The-Talon.build/Objects-normal/arm64/The-Talon"

Resources