在尝试构建项目时,我收到以下警告.大约有160个类似于它们的警告令人讨厌
ld:警告:不推荐使用CPU_SUBTYPE_ARM_ALL子类型:/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_udivsi3. O)
和
警告:(armv7)/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_divdi3.o)目标文件'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/libgcc.a(_divdi3.o)'不包含架构armv7的信息.
所有警告都与libgcc.a有关.
我需要这个应用程序来支持iOS 3.2及更高版本.那么我该怎么做才能删除这些警告?
我有一个已发布的应用程序,它同时支持amrv6和armv7.现在我有一个仅与armv7兼容的升级(我添加了一个依赖于armv7的外部库).当我尝试将应用程序提交到商店时,我会收到详细信息
我理解上一个错误,我需要更改我的应用程序,以便它支持这两种体系结构.我的问题是我的代码依赖于一个只与armv7兼容的库.如果我更改项目的属性以支持armv6和armv7,我会收到编译错误(详情如下).我需要能够编译支持这两种体系结构的代码:使用我依赖于armv6的库的armv7编译有一个不依赖于库的不同代码.
我怎样才能做到这一点?
错误详情:
• the compile crash is in one Lib file (.a) and the error says :
ld: warning: directory not found for option '-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/lib/gcc/arm-apple-darwin10/4.0.1' ld: in /Users/.../(lib file).a, file is universal but does not contain a(n) armv6 slice for architecture armv6 Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1
提前致谢
我最近刚升级到新的XCode.升级后,我的一些应用程序将无法构建.我收到此错误:
ld: cannot link directly with /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/lib/system/libcommonCrypto.dylib. Link against the umbrella framework 'System.framework' instead. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我已经尝试了一切 - 清洁,重新导入,改变架构......
请帮忙
我正在尝试将iOS版Google转化跟踪功能添加到我的iPhone应用中.该应用程序的基础SDK是iOS6应用程序的有效架构是armv7,armv7s应用程序的iOS部署目标是4.3我使用的是最新的xcode 4.5.2和OSX 10.8.2
该应用程序位于appstore中,适用于iPhone 3-4-5
当我尝试按以下链接添加适用于iOS的Google转化跟踪时:https://developers.google.com/mobile-ads-sdk/docs/admob/conversion-tracking
我有这个错误:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ASIdentifierManager", referenced from:
objc-class-ref in libGoogleConversionTracking.a(PingUtil.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud) 我见过几个为armv7,7s和i386构建FFmpeg API的脚本,但是找不到任何适用于armv64的脚本.本论坛其他主题的一些答案建议为arm64准备一个单独的库,但它与其他架构不兼容.因此,我需要一个适用于iOS所有支持架构的脚本,包括armv7,armv7s,armv64和i386.
我有一个.ipa具有arm64与armv它7片.如果我上同时支持的iDevice运行arm64和armv7哪个片将被运行时采摘?
我可以通过打印NSLog或某种方式来了解某个地方运行时已选择切片arm64吗?
我使用pip来获取nwhy的.whl文件
pip wheel --wheel-dir=./ numpy
Run Code Online (Sandbox Code Playgroud)
我得到了 numpy-1.13.3-cp27-cp27mu-linux_armv7l.whl因为我使用的是ARM平台,但是当运行pip for protobuf时
pip wheel --wheel-dir=./ protobuf
Run Code Online (Sandbox Code Playgroud)
我有 protobuf-3.4.0-py2.py3-none-any.whl
所以,为什么不linux_armv7l喜欢numpy的情况,我没有改变机器并搜索那个差异,但没有信息.
谢谢你的建议 .
我有一个使用zbar-sdk(条形码扫描库)的项目.
将我的机器更新为xcode 4.5和ios6sdk后,我遇到了一些麻烦.
我能够在不触及任何项目的情况下构建模拟器.这是使用最新的zbar 1.2库.
然后我想构建我的ios6设备进行测试,那就是当我收到错误时.
在zbar开发者论坛上进行了一些谷歌搜索之后,我看到我需要获取zbar源并为armv7和armv7s构建libzbar.a,因为zbar开发人员还没有这样做.
请参阅 - http://sourceforge.net/projects/zbar/forums/forum/1072195/topic/5728912
所以我这样做了,将更新的libzbar.a重新导入到我的项目中.然后我为我的设备构建,它工作了!我能够将我的应用程序放到我的测试设备上,zbar条形码库运行正常.
我认为那是它的结束,但不幸的是没有.
然后我再次尝试构建模拟器(ios6),那就是它失败了.
无论我怎么做不到这个项目同时为设备和simualtor和相同的设置建立:(
构建我自己的libzbar.a文件时的libzbar.a项目设置:
架构:标准(armv7,armv7s)$(ARCHS_STANDARD_32_BIT)
仅构建活动架构:否
有效的架构:armv7 armv7s
我的项目设置(对于myapp)如下:
架构:标准(armv7,armv7s)$(ARCHS_STANDARD_32_BIT)
仅构建活动架构:否
有效的架构:armv7 armv7s
基础SDK:iOS6
iOS部署目标:iOS 5.0
尝试构建模拟器时出错:
ld: warning: ignoring file /Users/blah/iOS App/myapp/ZBarSDK/libzbar.a, missing required architecture i386 in file /Users/blah/iOS App/myapp/ZBarSDK/libzbar.a (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
objc-class-ref in mycontroller.o
"_ZBarReaderControllerResults", referenced from:
-[mycontroller imagePickerController:didFinishPickingMediaWithInfo:] in mycontroller.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v …Run Code Online (Sandbox Code Playgroud) 在尝试存档Ad Hoc版本的应用时,我收到以下警告:
iPhone/iPod Touch: application executable contains unsupported architecture(s): armv7s (-19031)
我真的不确定为什么会发生这种情况有两个原因:
此外,我尝试使用和不插入iPhone 5进行存档,并且我收到错误两种方式.
有人知道如何解决这个问题吗?
我发现AppStore我的应用程序发布了一个问题!验证过程说:"iPhone/iPod Touch:应用程序可执行文件包含不受支持的结构:armv7s"
这是我链接的库:CoreLocation(必需)Twitter(可选)QuartzCore(必需)MapKit(必需)UIKit(必需)基础(必需)CoreGraphics(必需)libGoogleAnalytics.a(必需)libsqlite3.dylib(必需)CFNetwork(必填)
我也尝试删除GoogleAnalytics Library,但问题是一样的!你有什么主意吗?
谢谢
armv7 ×10
ios ×7
xcode ×4
architecture ×2
arm64 ×2
iphone ×2
armv6 ×1
executable ×1
ffmpeg ×1
frameworks ×1
i386 ×1
ios32 ×1
ios6 ×1
pip ×1
python-wheel ×1
warnings ×1
xcode4 ×1
xcode4.5 ×1
zbar-sdk ×1