I'm encountering a linker error while trying to build an iOS application developed using Ionic, Capacitor, and Angular. The build process fails for both debug (testing on the device) and release builds.
Ld /Users/Library/Developer/Xcode/DerivedData/App/Build/Products/Debug-iphoneos/WxWxnetwork/WxWxnetwork.framework/WxWxnetwork normal (in target 'WxWxnetwork' from project 'Pods')
cd /AppName/ios/App/Pods/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios13.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk -
L/Users/Library/Developer/Xcode/DerivedData/App/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -
L/Users/Library/Developer/Xcode/DerivedData/App/Build/Products/Debug-iphoneos/WxWxnetwork -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk/usr/lib/swift -
F/Users/Library/Developer/Xcode/DerivedData/App/Build/Intermediates.noindex/EagerLinkingTBDs/Debug-iphoneos -
F/Users/Library/Developer/Xcode/DerivedData/App/Build/Products/Debug-iphoneos/WxWxnetwork -
F/Users/Library/Developer/Xcode/DerivedData/App/Build/Products/Debug-iphoneos/Capacitor -
F/Users/Library/Developer/Xcode/DerivedData/App/Build/Products/Debug-iphoneos/CapacitorCordova -
F/Users/Documents/Test/ios/App/Pods/../../../node_modules/wx-wxnetwork -filelist
/Users/Library/Developer/Xcode/DerivedData/App/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/WxWxnetwork.build/Objects-normal/arm64/WxWxnetwork.LinkFileList -install_name @rpath/WxWxnetwork.framework/WxWxnetwork -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker
/Users/Library/Developer/Xcode/DerivedData/App/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/WxWxnetwork.build/Objects-normal/arm64/WxWxnetwork_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -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/Library/Developer/Xcode/DerivedData/App/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/WxWxnetwork.build/Objects-normal/arm64/WxWxnetwork.swiftmodule -framework Capacitor -framework ICDeviceManager -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker
/Users/Library/Developer/Xcode/DerivedData/App/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/WxWxnetwork.build/Objects-normal/arm64/WxWxnetwork_dependency_info.dat -o
/Users/Library/Developer/Xcode/DerivedData/App/Build/Products/Debug-iphoneos/WxWxnetwork/WxWxnetwork.framework/WxWxnetwork
Project Info:
Xcode: 14.3.1
IOS SDK: 16.4
Capacitor: 5.2.2
Ionic: 7
Angular: 16
I've tried multiple solutions to address the linker error including targeting ios 11. However, none of them have worked so far. Since I can't decrease the target iOS version due to the Capacitor requirement.
Any insights or suggestions would be greatly appreciated. Thank you in advance!
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I am trying to run my app on my iPhone (version 16). And I have the latest Xcode version 14. Also, I have a provision profile and certificate set.
System Information
macOS Version 12.6 (Build 21G115)
Xcode 14.0.1 (21336) (Build 14A400)
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
--
A valid provisioning profile for this executable was not found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "iPhone13,4";
"device_osBuild" = "16.0 (20A362)";
"device_platform" = "com.apple.platform.iphoneos";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 5463;
"operation_errorCode" = "-402620395";
"operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";
"operation_errorWorker" = IDEInstalliPhoneLauncher;
"operation_name" = IDEiPhoneRunOperationWorkerGroup;
"param_consoleMode" = 0;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 5;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.iphoneos";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 0;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 0;
"param_launcher_substyle" = 0;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_runnable_type" = 2;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos16.0";
"sdk_osVersion" = "16.0";
"sdk_variant" = iphoneos;
}
--
Hi,
I'm trying to run my Ionic 3 app on IOS simulator with iOS 14. I am using Xcode version 12.4 and then I get this error:
in /Plugins/cordova-plugin-google-analytics/libGoogleAnalyticsServices.a(TAGDataProvider.o), building for iOS Simulator, but linking in object file built for iOS, file 'platforms/ios/ManyTutors/Plugins/cordova-plugin-google-analytics/libGoogleAnalyticsServices.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation).
any suggestion/help will be appreciated.
Jitendera K.