Janith Widarshana Janith Widarshana - 1 year ago 291
iOS Question

Ionic - ld: framework not found UserNotifications

I created a ionic project and tried to implement push notification using https://docs.ionic.io/services/push/

ionic build ios
run without any issue.

But when I tried to emulate the app on IOS using
ionic emulate iOS
it fails with following error.

ld: framework not found UserNotifications
clang: error: linker command failed with exit code 1 (use -v to see invocation)


The following build commands failed:
Ld build/emulator/JustBook\ Salon.app/JustBook\ Salon normal i386
(1 failure)

I used administrator permissions to run those command.

Answer Source

iOS 10 introduces the new UserNotifications framework. I would assume the plugins used in this project have been updated to support/include it which means you need to build with XCode 8, which includes the iOS 10 SDK containing the UserNotifications framework. Building with XCode 7 will result in the observed error.

Note that at this time, Cloud-based Cordova build services such as Phonegap Build, Intel SDK and Ionic Cloud are still using XCode 7.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download