Xcode 15: linking failed due to missing file.

Hey!

Since updating to Xcode 15 we experience problems while archiving our app. We have linked several Swift Packages to our NotificationSerivceExtension which are needed to handle incoming notifications. We tried different approaches to solve this problem, including setting the -ld_classic linker flag.

ld: file not found: /Users/Daniel/Library/Developer/Xcode/DerivedData/APP-gujhwevhlpoiyteeiandolhxwgqx/Build/Intermediates.noindex/ArchiveIntermediates/APP/BuildProductsPath/AdHoc-iphoneos/UserNotificationService.o

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

This blocks us to updating to Xcode 15 and Sonoma :(.

Answered by DanielPSEP in 768595022

After 2 weeks of trying to fix the problem and just seconds after filling out this post, we manged to fix the build (for now) with deactivating EAGER_LINKING. This slows down or build time a bit, but at least it builds :).

Accepted Answer

After 2 weeks of trying to fix the problem and just seconds after filling out this post, we manged to fix the build (for now) with deactivating EAGER_LINKING. This slows down or build time a bit, but at least it builds :).

Xcode 15: linking failed due to missing file.
 
 
Q