Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 无法使用adt构建Air iPhone应用程序(带有iOS本机扩展)_Objective C_Ios_Flash_Uiimagepickercontroller_Adt - Fatal编程技术网

Objective c 无法使用adt构建Air iPhone应用程序(带有iOS本机扩展)

Objective c 无法使用adt构建Air iPhone应用程序(带有iOS本机扩展),objective-c,ios,flash,uiimagepickercontroller,adt,Objective C,Ios,Flash,Uiimagepickercontroller,Adt,我的问题是,当我尝试使用adt工具(通过终端)编译我的.ipa时,我遇到以下错误: ld: absolute addressing (perhaps -mdynamic-no-pic) used in -[MediaCaptureViewController showCamera] from /var/folders/NP/NPNiEhuUEwGiPRg0Bym7Sk+++TI/-Tmp-/97f7f1f9-6d5e-4486-9ba0- 147ff50f7157/libc

我的问题是,当我尝试使用adt工具(通过终端)编译我的.ipa时,我遇到以下错误:

ld: absolute addressing (perhaps -mdynamic-no-pic) used in -[MediaCaptureViewController         showCamera] from /var/folders/NP/NPNiEhuUEwGiPRg0Bym7Sk+++TI/-Tmp-/97f7f1f9-6d5e-4486-9ba0-    147ff50f7157/libcom.luxson.mediacapture.a(MediaCaptureViewController.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
Compilation failed while executing : ld64
iOS本机扩展弹出UIImagePickerController的一个实例,它与下面的代码行不同,这会导致上述adt错误:

cam.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
我已将MobileCoreServices框架包括在我的项目中,并将以下内容添加到我的头文件中:

#import <MobileCoreServices/MobileCoreServices.h>
#导入
其他有用信息…

我使用的是Xcode 4.2

要使用以下设置生成的项目集:

iOS部署目标:iOS 4.3 启用与共享库的链接:否


有人知道为什么adt不喜欢我的代码吗?

事实证明,我需要设置Enable Linking With Shared Libraries=Yes,尽管我读到的所有信息都说要将其设置为No