Tag: mach o

重复的符号架构arm64(Xcode错误)

我从我的项目中删除了所有对GoogleMobileAdsSDKiOS-7.1的引用,并添加了7.4.1。 当我在模拟器上运行应用程序一切正常,但在设备上运行时,我得到应用程序Mach-O链接器错误。 duplicate symbol l017 in: /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS- 7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADAdNetworkJavaScriptAdViewDelegate.o) /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o) duplicate symbol l018 in: /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADMRAIDPicture.o) /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADRewardBasedVideoAd+Mediation.o) duplicate symbol l016 in: /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADBannerAdViewDelegate.o) /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADAdAppViewController.o) duplicate symbol l021 in: /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADLocation.o) /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdAttribution.o) duplicate symbol l016 in: /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADBannerAdViewDelegate.o) /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADNativeAdImage.o) duplicate symbol l005 in: /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADMWebViewRenderedChecker.o) /Users/ib/Desktop/Monster GoogleAds7.4.1/GoogleMobileAdsSdkiOS-7.4.1/GoogleMobileAds.framework/GoogleMobileAds(GADAdViewRenderedChecker.o) duplicate symbol l006 in: […]

APPLE MACH-O LINKED ERROR添加AFNetworking后

只需在我的项目中添加AFNetworking,在B&R之后,我得到如下错误: Undefined symbols for architecture i386: "_SecCertificateCopyData", referenced from: -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecCertificateCreateWithData", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o "_SecPolicyCreateBasicX509", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustCopyPublicKey", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustCreateWithCertificates", referenced from: ___44+[AFURLConnectionOperation pinnedPublicKeys]_block_invoke in AFURLConnectionOperation.o -[AFURLConnectionOperation connection:willSendRequestForAuthenticationChallenge:] in AFURLConnectionOperation.o "_SecTrustEvaluate", referenced […]

Xcode给苹果Mach-O链接器错误

我只是编译一个项目,Xcode返回这两个似乎不是我的代码错误的错误。 我如何解决它们? Undefined symbols for architecture i386: "_vImageBoxConvolve_ARGB8888", referenced from: -[UIImage(Blur) boxblurImageWithBlur:] in UIImage+Blur.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

如何将LC_LOAD_DYLIB命令插入Mach-O二进制文件或将静态库连接到现有的二进制文件(IOS)

这是我第一次问stackoverflow和我绝望。 我的任务是加载一个dylib或join一个静态库到IOS设备已经存在的可执行文件。 我将使用static void __attribute__((constructor)) initialize(void)开始搅拌。 这个可执行文件是在内部企业appstore,所以我不需要通过苹果appstore(因为他们会拒绝它)。 这样做的原因是从客户那里获取现有的IPA及其签名密钥,并为其应用程序添加新function,而无需开发人员的干预。 有一家公司叫做nukona。 您可以在这里观看电影: https : //www.youtube.com/watch?feature=player_embedded&v=z9rrOB6lOxY 我可以告诉你,我试图把LSEnvironment放在带有DYLD_INSERT_LIBRARIES的plist文件中,但是事实certificateLSEnvironment在IOS应用程序的沙盒中似乎没有任何作用。 我也尝试了install_name_tool来更改其中一个依赖关系,并用我的dylib(也有这个依赖关系)replace它。 它崩溃,没有信息为什么。 很明显,如果我将dylib添加到XCode中的testing应用程序,并重新编译,它是完美的,这是一个给定的。 但是,这是我不能问的,例如,一个公司的pipe理员。 重build可能会阻止客户使用这个库。 这里是一个相关的链接,我发现堆栈溢出,但对于OSX,我需要它的IOS。 如何将LC_LOAD_DYLIB命令插入Mach-O二进制文件(OSX) 我唯一能想到的是编辑二进制加载命令一些如何,但我不知道如何以及如何做到这一点考虑到搬迁表等… 任何替代scheme是值得欢迎 感谢您的时间。

苹果Mach-O-Linker错误CocoaPods

所以我一直在试图让我的应用程序运行起来。 从我可以告诉应用程序丢失Cocoapods作为依赖。 所以。 我安装并添加了Cocoapods。 但是,无论出于何种原因,我仍然遇到同样的错误。 我是一个没有经验的开发者,试图自学我必须补充。 Ld /Users/bfarag/Library/Developer/Xcode/DerivedData/Umbrella-cspuzusfqmqgnwdqfhtiyivaqwke/Build/Products/Debug-iphonesimulator/Umbrella.app/Umbrella normal i386 cd“/ Users / bfarag / Desktop / The Nerdery / BRAVO.iOS.CodeChallenge “export IPHONEOS_DEPLOYMENT_TARGET = 7.0 export PATH =”/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin“/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 […]

苹果Mach-O链接器错误,我不知道该怎么办

我无法编译我的项目的设备或模拟器了。 我得到了13个苹果Mach-O-Linker错误。 这一切都是在我尝试使用sharekit失败之后开始的。 这是来自错误的日志: ld: warning: directory not found for option '-F/Users/bbrandy95/Documents/Broken Brandsonic Web Projects/Brandsonic Web mobile/../../Downloads/0.2.1gm1/iphoneos4.0/System/Library/Frameworks' Undefined symbols for architecture armv7: "_OBJC_CLASS_$_NSURLRequest", referenced from: objc-class-ref in Brandsonic_Web_mobileAppDelegate.o objc-class-ref in Brandsonic_Web_mobileViewController.o "_OBJC_CLASS_$_NSAutoreleasePool", referenced from: objc-class-ref in main.o "_objc_msgSendSuper2", referenced from: -[Brandsonic_Web_mobileAppDelegate dealloc] in Brandsonic_Web_mobileAppDelegate.o -[Brandsonic_Web_mobileViewController didReceiveMemoryWarning] in Brandsonic_Web_mobileViewController.o -[Brandsonic_Web_mobileViewController dealloc] in Brandsonic_Web_mobileViewController.o "_objc_setProperty", referenced from: […]

苹果Mach-O链接器(id)警告:为MacOSX构build,但链接到为iOS构build的dylib

从过去xCode 4的某个时刻开始抱怨链接器问题: ld:警告:为MacOSX构build,但链接到为iOS构build的dylib:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics 我已经检查了一切,但仍然没有任何可疑的configuration,它编译和运行。 我唯一看到的是CoreGraphics.framework之前的双斜杠,为什么我不知道。 尝试删除并再次添加库“build设阶段”,没有帮助。

在xCode 6中find一个意想不到的Mach-O头文件代码:1918975009

是什么导致了错误 Found an unexpected Mach-O header code: 1918975009 in xCode 6 我将我的项目归档为ad hoc构build,并且构build/链接/归档很好,但是当我在xCode组织者中并select“ Export -> Ad Hoc ad hoc时, 我得到错误 Found an unexpected Mach-O header code: 191897500.