CleverTap / CTNotificationService

A simple Notification Service Extension class to add media attachments to iOS 10 rich push notifications
MIT License
17 stars 15 forks source link

Build Fails in iOS #15

Closed Arun-paramasivam closed 3 years ago

Arun-paramasivam commented 3 years ago

Hi @Aditi3

when running in the simulator it works fine. When the archive is made, I get the following errors and warnings and the build fails.

warning: Target 'Pods-CTNotificationServiceExtension' of project 'Pods' was rejected as an implicit dependency for 'libPods-CTNotificationServiceExtension.a' because its architectures 'arm64' didn't contain all required architectures 'armv7 arm64'

warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/project-aohgwbgewxccmbdjykjtpkbxkqdp/Build/Intermediates.noindex/ArchiveIntermediates/project/BuildProductsPath/Release-iphoneos/CTNotificationService'

error: ld: library not found for -lCTNotificationService

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

Originally posted by @Arun-paramasivam in https://github.com/CleverTap/CTNotificationService/issues/14#issuecomment-699883756

Aditi3 commented 3 years ago

hi @Arun-paramasivam

I have tried archiving & validating the build and it appears to work.

CTNotificationServiceExample

It might be related to your project settings. Additionally, aforementioned error & warning seem to be well-known and many solutions are available on Stack Overflow/ Internet which can help you in resolving the build fail error.

Some helping links: https://github.com/CocoaPods/CocoaPods/issues/2053 https://stackoverflow.com/questions/19419781/cocoapods-arm64-issue

Best, Aditi

Arun-paramasivam commented 3 years ago

Hi @Aditi3

Thanks for the quick response and the links. It solved the error. Closing the issue since its resolved.