Ios 当我在应用程序启动前包含openssl FIPS库时,gdb抛出错误。链接很好

Ios 当我在应用程序启动前包含openssl FIPS库时,gdb抛出错误。链接很好,ios,openssl,xcode4.3,fips,Ios,Openssl,Xcode4.3,Fips,编辑此问题,因为问题现在不同了 我通过为正确的平台(armv7)构建链接问题而摆脱了。 现在,我陷入了另一个问题,它不允许我启动我的应用程序。下面是我的测试应用程序的输出,它基本上检查FIPS模式是否启用: GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Oct 17 16:52:01 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software

编辑此问题,因为问题现在不同了

我通过为正确的平台(armv7)构建链接问题而摆脱了。 现在,我陷入了另一个问题,它不允许我启动我的应用程序。下面是我的测试应用程序的输出,它基本上检查FIPS模式是否启用:

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Oct 17 16:52:01 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".
Setting environment variable "MallocStackLogging" to null value.
tty /dev/ttys003
sharedlibrary apply-load-rules all
target remote-mobile /tmp/.XcodeGDBRemote-22227-108
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
Re-enabling shared library breakpoint 1
Re-enabling shared library breakpoint 2
Re-enabling shared library breakpoint 3
openssFIPSTest(235) malloc: recording malloc stacks to disk using standard recorder
openssFIPSTest(235) malloc: stack logs being written into /private/var/mobile/Applications/CBBB042A-B015-48B3-8CB4-8539EC8FD406/tmp/stack-logs.235.openssFIPSTest.index
openssFIPSTest(235) malloc: Please issue: cp /private/var/mobile/Applications/CBBB042A-B015-48B3-8CB4-8539EC8FD406/tmp/stack-logs.235.openssFIPSTest.jsOD6R.link /tmp/
89a6797b8847c7f20ce1ca972858d3a7e2d97e4d
直到第一种方法出现时,它才出现:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions.
发射前本身存在一些错误。我已经多次重启MacBook、ipad和xcode,但运气不佳


有什么线索吗?

您已经在PC/Mac上为x86构建了静态库,并试图将其与iOS二进制文件(即armv6/armv7)链接


如果您想在模拟器和所有iDevices上运行应用程序,您需要构建一个多拱静态库(i386/armv6/armv7)。

谢谢Karthik。我上周意识到了这一点。我现在为armv7构建了它,并且我能够链接它。