在PhoneGap 2.9中缺少libCordova.a文件 [英] libCordova.a file missing in PhoneGap 2.9

查看:134
本文介绍了在PhoneGap 2.9中缺少libCordova.a文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能帮我吗?
我使用XCode版本4.6.3和phonegap版本2.9。
该项目在模拟器中正常运行,但是当我要创建一个IPA文件时,它总是失败。



该消息显示如下: p>

 文件未找到:/Users/admin/.../libCordova.a 
clang:error:linker命令失败退出代码1(使用-v查看调用)



我找到一些关于这个问题的讨论。大多数解决方案就像(1)将BUILD ACTIVE ARCHITECTURE ONLY更改为YES,(2)将ARCHITECTURE更改为armv7,(3)在创建项目后更新...等。



提前感谢。

解决方案

请按照以下步骤修复此问题:


  1. 转到项目设置和Build选项卡。搜索其他链接器标记

  2. 双击发布和更改的链接器标记 $ {TARGET_BUILD_DIR} /libCordova.a $ {BUILT_PRODUCTS_DIR} /libCordova.a

  3. 对调试执行相同操作

  4. 再次构建存档


Can you plz help me? I am using XCode version 4.6.3 and phonegap version 2.9. The project is running fine in Simulator but when I want to make a IPA file, it always build failed.

The message is showing like below:

file not found: /Users/admin/.../libCordova.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have found some discussion on this issue. Most of the solution is like (1) to change the BUILD ACTIVE ARCHITECTURE ONLY to YES, (2) to change the ARCHITECTURE only to armv7, (3) update the project after creating it...etc. But none of those working for me.

Plz help anyway.

Thanks in advance.

解决方案

Follow these steps to fix this problem:

  1. Go to project settings and Build Tab. Search for "Other Linker Flags"
  2. Double click on the linker flags for Release and Change ${TARGET_BUILD_DIR}/libCordova.a to ${BUILT_PRODUCTS_DIR}/libCordova.a
  3. Do the same for Debug
  4. Clean and build archive again

这篇关于在PhoneGap 2.9中缺少libCordova.a文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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