ionic3 - Apple Mach -O Linker(Id)错误? [英] ionic3 - Apple Mach -O Linker (Id) Error?

查看:169
本文介绍了ionic3 - Apple Mach -O Linker(Id)错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是显示的全部错误:

  Apple Mach -O Linker(Id)错误? 
链接器命令失败,退出代码为1(使用-v查看调用)。



在我的ionic3项目中安装OneSignal插件后,还没有设置全部,当我尝试运行我的项目时在我的设备中,这个错误就出来了。



当我打开 .xcworkspace 文件时,两个项目向我显示第一个是我的真实项目,最后一个是我安装 OneSignal插件并安装 sudo gem install cocoapods,pod repo update 然后显示





刚才我尝试过运行离子cordova运行ios --device 可以在我的设备上运行,但是当我使用xcode时并点击播放按钮,无法在我的设备中运行并显示错误我的问题标题

解决方案

最后我找到了解决问题的方法这个错误!



因为我为推送通知功能安装 pod ,所以尝试使用 .xcworkspace 安装pod后运行项目的文件,而不是 .xcodeproj 文件。



<但是我仍然不知道为什么 .xcworkspace 在安装 pod 时会显示此错误,如果你知道的话请在这里发表评论,非常感谢!


This is the all error showing:

Apple Mach -O Linker (Id) Error? 
"Linker command failed with exit code 1 (use -v to see invocation). 

After I install OneSignal plugin in my ionic3 project, haven't setup all , When I tried to run my project in my device, this error coming out.

And when I open .xcworkspace file, two project showing to me. First one is my real project, last one is after I install OneSignal plugin and install sudo gem install cocoapods, pod repo update then showing

Just now I tried run ionic cordova run ios --device that can run in my device, but when I use xcode and hit play button which cannot run in my device and showing the error that my question title

解决方案

Finally I found the way to solve this error!

Because I install pod for push notification fucntion, so try to use the .xcworkspace file to run the project after pod install instead of .xcodeproj file.

But I still don't know why .xcworkspace will showing this error when I install pod, if you know comment here please, thanks a lot!

这篇关于ionic3 - Apple Mach -O Linker(Id)错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆