我创建了一个离子项目,并尝试使用https://docs.ionic.io/services/push/实现推送通知。
ionic build ios运行时没有任何问题。
但是当我试图用ionic emulate iOS在IOS上模仿这个应用程序时,它失败了,出现了以下错误。
ld: framework not found UserNotifications
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/emulator/JustBook\ Salon.app/JustBook\ Salon normal i386
(1 failure)我使用管理员权限来运行这些命令。
发布于 2016-10-14 05:16:13
iOS 10引入了新的UserNotifications框架。我假设这个项目中使用的插件已经更新以支持/包含它,这意味着您需要使用XCode 8构建,其中包括包含UserNotifications框架的iOS 10 SDK。使用XCode 7构建将导致所观察到的错误。
请注意,目前基于云的Cordova构建服务,如Phonegap、Intel和Ionic仍在使用XCode 7。
https://stackoverflow.com/questions/40034972
复制相似问题