14.2 C
New York
Sunday, September 8, 2024

ios – Xcode at all times generate Undefined image: _main when used pod ‘Google-Cellular-Advertisements-SDK’


I exploit Xcode model 15.4 after which open a brand new iOS undertaking. I examined with out utilizing pod, the undertaking might be inbuilt simulator iPhone Professional 15.
Then I used $pop init to create podfile and alter the goal iOS model to 12.0 and added pod 'Google-Cellular-Advertisements-SDK' pod set up --repo-update then construct once more,
it exhibits

Displaying Current Points
Ld /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Merchandise/Debug-iphonesimulator/l1demotrial2.app/l1demotrial2 regular (in goal ‘l1demotrial2’ from undertaking ‘l1demotrial2’)
cd /Customers/ra/Paperwork/iOSProject/l1demotrial2
/Functions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target arm64-apple-ios17.5-simulator -isysroot /Functions/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk -O0 -L/Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/EagerLinkingTBDs/Debug-iphonesimulator -L/Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Merchandise/Debug-iphonesimulator -L/Functions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Functions/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk/usr/lib/swift -F/Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/EagerLinkingTBDs/Debug-iphonesimulator -F/Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Merchandise/Debug-iphonesimulator -F/Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Merchandise/Debug-iphonesimulator/Google-Cellular-Advertisements-SDK -F/Customers/ra/Paperwork/iOSProject/l1demotrial2/Pods/Google-Cellular-Advertisements-SDK/Frameworks/GoogleMobileAdsFramework -F/Customers/ra/Paperwork/iOSProject/l1demotrial2/Pods/GoogleUserMessagingPlatform/Frameworks/Launch -F/Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Merchandise/Debug-iphonesimulator/XCFrameworkIntermediates/Google-Cellular-Advertisements-SDK -F/Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Merchandise/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleUserMessagingPlatform -filelist /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/l1demotrial2.construct/Debug-iphonesimulator/l1demotrial2.construct/Objects-normal/arm64/l1demotrial2.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/l1demotrial2.construct/Debug-iphonesimulator/l1demotrial2.construct/Objects-normal/arm64/l1demotrial2_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Functions/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/l1demotrial2.construct/Debug-iphonesimulator/l1demotrial2.construct/Objects-normal/arm64/l1demotrial2.swiftmodule -ObjC -lsqlite3 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework GoogleMobileAds -framework Google_Mobile_Ads_SDK -framework JavaScriptCore -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework Community -framework QuartzCore -framework Safety -framework StoreKit -framework SystemConfiguration -framework UserMessagingPlatform -framework WebKit -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/l1demotrial2.construct/Debug-iphonesimulator/l1demotrial2.construct/l1demotrial2.app-Simulated.xcent -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __ents_der -Xlinker /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/l1demotrial2.construct/Debug-iphonesimulator/l1demotrial2.construct/l1demotrial2.app-Simulated.xcent.der -framework Pods_l1demotrial2 -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Intermediates.noindex/l1demotrial2.construct/Debug-iphonesimulator/l1demotrial2.construct/Objects-normal/arm64/l1demotrial2_dependency_info.dat -o /Customers/ra/Library/Developer/Xcode/DerivedData/l1demotrial2-ekrzrbacazdfzvayaurpazksqssz/Construct/Merchandise/Debug-iphonesimulator/l1demotrial2.app/l1demotrial2

ld: warning: Couldn't discover or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not discovered
Undefined symbols for structure arm64:
“_main”, referenced from:

ld: image(s) not discovered for structure arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Couldn’t discover or use auto-linked framework ‘CoreAudioTypes’: framework ‘CoreAudioTypes’ not discovered

Undefined image: _main

Linker command failed with exit code 1 (use -v to see invocation)

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles