简体   繁体   中英

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

I am new with ionic1 framework. Currently i am working on ionic sidemenu ios app. I have create a share extention its working fine and build my app on iphone but when i archive it gives error

swift compiler error 'Cordova/CDV.h' file not found

failed to import bridging header '/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. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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