简体   繁体   English

Ionic:无法在xcode8.2.1中存档应用程序,但构建成功

[英]Ionic: unable to archive app in xcode8.2.1 but it build successfully

I am new with ionic1 framework. 我是ionic1框架的新手。 Currently i am working on ionic sidemenu ios app. 目前,我正在开发离子面菜单ios应用程序。 I have create a share extention its working fine and build my app on iphone but when i archive it gives error 我已经创建了一个共享扩展,可以正常工作,并在iPhone上构建了我的应用程序,但是当我存档时却出现了错误

swift compiler error 'Cordova/CDV.h' file not found 找不到快速编译器错误'Cordova / CDV.h'文件

failed to import bridging header '/Users/ht/msbsocial/myApp/platforms/ios/project/Bridging-Header.h' 无法导入桥接标头'/Users/ht/msbsocial/myApp/platforms/ios/project/Bridging-Header.h'

I am not able to understand how to resolve it. 我无法理解如何解决。 I have searched and tried solutions but no luck. 我已经搜索并尝试了解决方案,但是没有运气。 Please help me. 请帮我。

要使用xcode存档应用,您需要插入设备,选择该设备就像在该应用上运行该应用一样,然后就可以存档了。

This hasn't been active for a long time, but...maybe this will be helpful to someone who gets the same problem in the future... 这已经很长时间没有活跃了,但是...也许这对于将来遇到同样问题的人会有所帮助...

I had the same problem(build succeeded but archive failed) when I added an extension plugin (cordova-plugin-call-directory) to my ionic project. 当向我的离子项目添加扩展插件(cordova-plugin-call-directory) ,我遇到了同样的问题(构建成功,但是存档失败)。 I solved the problem by: 我通过以下方法解决了这个问题:

select extension under [Targets] >> go to [Build Settings] >> find [Objective-C Bridging Header] >> delete the path value >> clean and then archive select extension under [Targets] >> go to [Build Settings] >> find [Objective-C Bridging Header] >> delete the path value >> clean and then archive

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM