nativescript ios on Mac M1 ld: framework not found FirebaseCore clang: error: linker command failed with exit code 1 (use -v to see invocation) #10378
-
Issue DescriptionIt happen after migration live nativescript project from Mac Intel to new Mac M1. etc... ld: framework not found FirebaseCore Reproduction
Relevant log output (if applicable)....
Merged 1100 categories.
Result: 55894 declarations from 177 top level modules
Done! Running time: 5.54415 sec
Saving metadata generation's stderr stream to: /Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/metadata-generation-stderr-arm64.txt
~/Projects/XCode/Haultail/native-script/haultail-new-0/haultail/platforms/ios
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/AMPopTip'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/CocoaLumberjack'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/DAScratchPad'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/FirebaseCore'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/FirebaseCoreDiagnostics'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/FirebaseInstallations'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/FirebaseInstanceID'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/FirebaseMessaging'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/GoogleDataTransport'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/GoogleUtilities'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/IQKeyboardManager'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/ISMessages'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/MBProgressHUD'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/MDFInternationalization'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/MMNumberKeyboard'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/MaterialComponents'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/OMGHTTPURLRQ'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/PocketSocket'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/PromisesObjC'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/QBImagePickerController'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/SAMKeychain'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/SVGKit'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/Sentry'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/SocketRocket'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/SwiftyCam'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/TrustKit'
ld: warning: directory not found for option '-F/Users/eugenelysenko/Library/Developer/Xcode/DerivedData/haultail-gwqydtrltqtzrgdgfjrvopcijwcv/Build/Products/Debug-iphonesimulator/nanopb'
ld: framework not found FirebaseCore
clang: error: linker command failed with exit code 1 (use -v to see invocation) EnvironmentOS: macOS 13.4.1 androidjava: 11.0.13
iosxcode: 14.3.1/14E300c
"dependencies": { Please accept these terms
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Seems like this is an old project, pre Apple Silicon era. Some of the plugins used don't have arm64 architecture slices in them to run natively on the new mac/simulators. One option is to run on physical devices - which should work because the device slices haven't changed with the introduction of Apple Silicon. You might need to replace Alternatively, you need to either update the project to latest, including replacing deprecated plugins like nativescript-plugin-firebase, or use something like For example, for firebase specifically, something like this might work. (this is where PS: If you need help with a project upgrade, you can always reach out to one of the professional partners: https://nativescript.org/partners/ for a quote |
Beta Was this translation helpful? Give feedback.
Seems like this is an old project, pre Apple Silicon era. Some of the plugins used don't have arm64 architecture slices in them to run natively on the new mac/simulators.
One option is to run on physical devices - which should work because the device slices haven't changed with the introduction of Apple Silicon. You might need to replace
tns-ios: 6.5.6
with@nativescript/[email protected]
(latest) which should work fine regardless of the rest of your project dependencies.Alternatively, you need to either update the project to latest, including replacing deprecated plugins like nativescript-plugin-firebase, or use something like
patch-package
to patch incompatible plugins directly after identifying…