0

I am trying to develop 1 app with phone gap. When i try to use plugin extractzipfile for iOS it's throw this error:

Undefined symbols for architecture i386:
"_main", referenced from:
    start in crt1.o
  ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

then i seach for issue and i find 1: "add main.m in to compiler source of compiler phrase".

and this error above is fixed. But it's throw an exeption:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to instantiate the UIApplication delegate instance. No class named AppDelegate is loaded.'

I am using phonegap 2.5.0 and Xcode 4.6.1, use iPhone simulator 6.1

Please, hlep me! i am new and fool!

thanh for reading!

4

1 回答 1

0

如果你突然出现这种情况,通常意味着项目缺少一些它需要的框架。库和相关项目可能需要框架,因此如果您最近添加了框架,则可能会导致此错误。

要添加框架,请在项目视图中右键单击项目名称,选择添加,然后从列表中选择现有框架...。然后找到带有您缺少的符号的框架。

至于如何找到所需的框架,我发现使用 google 最简单,尽管您也可以使用 Xcode 帮助搜索。搜索其中一个符号,尽最大努力找出未损坏的名称,然后您在 developer.apple.com 找到的第一个文档链接通常是正确的。您通常不必狩猎很远。在这种情况下,就是这个页面:

然后继续这样做,直到它起作用......

于 2013-04-09T08:56:20.357 回答