尝试调用此方法:
avatarIconImageView.setContentHuggingPriority(UILayoutPriorityDefaultLow, forAxis: UILayoutConstraintAxis.Horizontal)
Run Code Online (Sandbox Code Playgroud)
并捕获此异常:
架构armv7的未定义符号:
"_ UILayoutPriorityDefaultLow",引用自:__ TFCvatar_iOS36TCAvatarWithCounterUniversalCellView22configureBodyCellViewsfS0_FT_T_ in TCAvatarUniversalCellView.o ld:未找到架构armv7 clang的符号:错误:链接器命令失败,退出代码为1(使用-v查看调用)
这是什么意思?
下载Xcode 8并迁移到Swift 3后,我无法再归档项目.同时,项目建立没有任何问题.
我得到的错误:
体系结构armv7的未定义符号:
"Swift.UnsafeMutableBufferPointer.(subscript.materializeForSet:(Swift.Int) - > A).(closure#1)",引自:Swift.UnsafeMutableBufferPointer的泛型特化的函数签名特化:Swift.MutableCollection在Swift和Swift.UnsafeMutableBufferPointer:Swift中的Swift.RandomAccessCollection> of Swift._siftDown(inout A,index:A.Index,subRange:Swift.Range,by:inout(A.Iterator.Element,A.Iterator.Element) - > Swift.Bool) - >()在OrderCoordinator.o函数签名中使用Swift.UnsafeMutableBufferPointer进行泛型特化:WSift中的Swift.MutableCollection和Swift.UnsafeMutableBufferPointer:Swift中的Swift.RandomAccessCollection> Swift._heapSort(inout A,subRange: Swift.Range,by:inout(A.Iterator.Element,A.Iterator.Element) - > Swift.Bool) - >()在OrderCoordinator.o函数签名中使用Swift.UnsafeMutableBufferPointer进行泛型特化:Swift.Mu swift和Swift.UnsafeMutableBufferPointer中的tableCollection:Swift中的Swift.RandomAccessCollection> Swift._partition(inout A,subRange:Swift.Range,by:inout(A.Iterator.Element,A.Iterator.Element) - > Swift.Bool) - > OrderCoordinator.o中的A.Index:未找到架构armv7 clang的符号:错误:链接器命令失败,退出代码为1(使用-v查看调用)
通过在以下函数中注释数组排序代码,我能够摆脱错误:
func didFinishWithResults(_ results: [PhotoProcessorResult]) {
guard let album = albumService.currentAlbum else { return }
//let sortedResults = results.sorted(by: { $0.fileIndex < $1.fileIndex })
let updateItems = zip(sortedResults, album.assetItems).map { (photoProcessorResult, assetItem) -> UpdateItem in
UpdateItem(path: photoProcessorResult.filePath, position: photoProcessorResult.fileIndex, isCover: assetItem.isCover)
}
albumService.updateAlbumWithItems(updateItems) { (success, …Run Code Online (Sandbox Code Playgroud) 我已经阅读了很多关于SO的帖子,并且所提出的解决方案都没有为我工作.我希望那些对解释错误有更多了解的人可以提供帮助.
我的应用程序一直运行良好(现在仍然如此),但是当使用某个类'iCarousel'时,我遇到了一个问题,这是一个Cover Flow的实现.
这是有趣的事情:当打开iCarousel的示例项目时,它在我的iPhone上正常运行.我的应用程序(在一个单独的项目中)也运行良好.他们都使用armv6 armv7 架构并在iOS 5.1上运行.
然后我将类复制到我自己的项目并添加所有必要的框架.还没有错误.但是当我构建并运行时,我收到一个错误:
Ld /Users/Sooper/Library/Developer/Xcode/DerivedData/TestApp-
ejfsezvwxyxhqpanwwrcmsbkslxi/Build/Intermediates/TestApp.build/Debug-
iphoneos/TestApp.build/Objects-normal/armv7/TestApp normal armv7
cd "/Users/Sooper/Developer/TestApp v1.0"
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
-L/Users/Sooper/Library/Developer/Xcode/DerivedData/TestApp-ejfsezvwxyxhqpanwwrcmsbkslxi/Build/Products/
Debug-iphoneos -F/Users/Sooper/Library/Developer/Xcode/DerivedData/TestApp-ejfsezvwxyxhqpanwwrcmsbkslxi/Build/Products/
Debug-iphoneos -filelist /Users/Sooper/Library/Developer/Xcode/DerivedData/TestApp-ejfsezvwxyxhqpanwwrcmsbkslxi/Build/Intermediates/TestApp.build/
Debug-iphoneos/TestApp.build/Objects-normal/armv7/TestApp.LinkFileList -dead_strip -miphoneos-
version-min=5.0 -lz -framework QuartzCore -framework CoreGraphics -framework
SystemConfiguration -lxml2.2.7.3 -framework Security -framework CoreMedia -framework Accounts
-framework CoreFoundation -framework AudioToolbox -framework AVFoundation -framework Twitter -
framework MediaPlayer -framework UIKit -framework Foundation -o
/Users/Sooper/Library/Developer/Xcode/DerivedData/TestApp-
ejfsezvwxyxhqpanwwrcmsbkslxi/Build/Intermediates/TestApp.build/Debug-
iphoneos/TestApp.build/Objects-normal/armv7/TestApp
Run Code Online (Sandbox Code Playgroud)
在此之下:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_ArtworkScrollerViewController", …Run Code Online (Sandbox Code Playgroud) 所以我试图将其实现到我当前的项目中:
https://github.com/mobitar/MBAlertView
Wenn我试着在我的应用程序中使用这个我收到此错误:
Ld /Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos/Janssenapp.app/Janssenapp normal armv7s cd/Users/florianschaal/Developer/Janssenapp setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH"/ Applications /Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ iPhoneOS6.1.sdk -L/Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos -L/Users/florianschaal/Developer/Janssenapp/Janssenapp/ZBarSDK -F/Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos -filelist/Users/florian schaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Intermediates/Janssenapp.build/Debug-iphoneos/Janssenapp.build/Objects-normal/armv7s/Janssenapp.LinkFileList -dead_strip -fobjc-arc -fobjc-link- runtime -miphoneos-version-min = 6.1 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/florianschaal/Library/Developer/Xcode/DerivedData/Janssenapp-egfiwitwudiuhubsglmuhxxuafya/Build/Products/Debug-iphoneos/Janssenapp.app/Janssenapp
对于建筑armv7s未定义的符号:
"_OBJC_CLASS _ $ _ CABasicAnimation",从引用:objc级-REF在MBSpinningCircle.o "_kCAMediaTimingFunctionEaseOut",从引用: - [MBAlertView animationWithValues:时间:持续时间:在MBAlertView.o "_kCATransitionFade",引用自: - [UIView的(动画)addFadingAnimationWithDuration:]在UIView的+ Animations.o "_kCAMediaTimingFunctionEaseInEaseOut",从参考: - [UIView的(动画)animationPop]中的UIView + Animations.o - [UIView的(动画)addPulsingAnimation]中的UIView +动画的.o - [UIView的(动画)addFadingAnimationWithDuration:]在UIView的+ Animations.o "_kCATransitionFromBottom",从参考: - [UIView的(动画)addFadingAnimationWithDuration:]:objc-中的UIView + Animations.o "_OBJC_CLASS _ $ _ CATransition",从参考UIView + Animations.o中的class-ref"_kCAMediaTimingFunctionEaseIn",引用自: - MBAlertView.o中的[MBAlertView …
我正在尝试构建我的 React Native 项目以供发布,但出现错误:
架构 armv7 的未定义符号:“_OBJC_CLASS_$_RCTRootView”,引用自:AppDelegate.o ld 中的 objc-class-ref:找不到架构 armv7 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v查看调用)
有人可以在这里帮忙吗,我想不通。
我收到此错误:
“错误:无法生成进程(参数列表过长)
**归档失败**
以下构建命令失败:CompileSwiftSources正常arm64 com.apple.xcode.tools.swift.compiler(1个失败)
退出代码= 65“
我通过以下链接: Xcode导出本地化引发错误“参数列表过长”
本文为指出减少路径层次结构的问题提供了一个很好的临时解决方案。但这似乎不是适当的方法。谁能为我提供不同的方法来解决这个问题?
请从下面的错误帮助我.
我正在使用第三方框架(libIPhonecharting)处理图形,每个东西在模拟器中工作正常,但是当我尝试构建.app文件以在IPAD设备中安装时,我收到以下错误消息.
忽略文件/Users/xyz/Desktop/xyzIPAD/library/4.0/Release-iphoneos/libIPhoneCharting.a,文件是为归档而构建的,而不是被链接的体系结构(armv6)
体系结构armv6的未定义符号:"_ OBJC_CLASS _ $ _ DTCStroke",引自:DemoLineChart.o中的objc-class-ref"_OBJC_CLASS _ $ _ IPCBar3DChart",引自:DemoBar3DChart.o中的objc-class-ref"_OBJC_CLASS _ $ _ IPCLineChart",引用自:DemoLineChart.o中的objc-class-ref"_ OBJC_CLASS _ $ _ DTCDefaultCategoryDataset",引自:DemoBar3DChart.o中的objc-class-ref,DemoLineChart.o中的objc-class-ref"_DTC_STROKE_CAP_SQUARE",引用自:+ [DemoLineChart(Private) getRenderWithRender:]在DemoLineChart.o"_ OBJC_CLASS _ $ _ IPCTitle"中,引用自:DemoBar3DChart.o中的objc-class-ref,在DemoLineChart.o中的objc-class-ref"_DTC_STROKE_JOIN_BEVEL",引自:+ [DemoLineChart(Private)getRenderWithRender:]在DemoLineChart.o ld:找不到架构armv6的符号collect2:ld返回1退出状态
按照这里的说明:http
://hoishing.wordpress.com/2011/08/23/gdata-objective-c-client-setup-in-xcode-4/
我将GData添加到我的iOS 5项目中.在归档项目时,我收到以下错误:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GDataServiceGoogleYouTube", referenced from:
objc-class-ref in DataManager.o
"_OBJC_CLASS_$_GDataEntryYouTubeVideo", referenced from:
objc-class-ref in DataManager.o
objc-class-ref in ListController.o
objc-class-ref in ShareController.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)
我已经检查了GData.xcodeproj - > GDataTouchStaticLib的构建设置,这就是我将它们设置为如图所示:)

感谢任何帮助,以帮助我的项目存档.
我使用I创建了一个react-native项目react-native init
然后使用File - > new - > target - > Action Extension为该项目添加了一个动作扩展,名称为"Stash"我尝试添加一个继承自UIView的StashView,并包含一个RCTRootView ,按照与现有应用程序集成说明中的说明:
藏匿/ StashView.h:
#import <UIKit/UIKit.h>
@interface StashView : UIView
@end
Run Code Online (Sandbox Code Playgroud)
藏匿/ StashView.m:
#import "StashView.h"
#import "RCTRootView.h"
@implementation StashView
- (void)awakeFromNib {
NSString *urlString = @"http://localhost:8081/stash.ios.bundle";
NSURL *jsCodeLocation = [NSURL URLWithString:urlString];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName: @"Stash"
launchOptions:nil];
[self addSubview:rootView];
rootView.frame = self.bounds;
}
@end
Run Code Online (Sandbox Code Playgroud)
当我编译时,我收到错误:
架构x86_64的未定义符号:
"_ OBJC_CLASS _ $ _ RCTRootView",引用自:StashView.o中的objc-class-ref ld:未找到架构x86_64的符号clang:错误:链接器命令失败,退出代码为1(使用-v看看调用)
完整堆栈跟踪:
Ld /Users/danoved/Library/Developer/Xcode/DerivedData/ToDoBox-gmtanlmumdrkqactpypioaempcuc/Build/Products/Debug-iphonesimulator/Stash.appex/Stash normal x86_64 cd/Users/danoved/Source/myprojects/ToDoBox export …
我在构建发布 React Native ios 时遇到问题,我尝试寻找许多示例,但全部失败。
这是错误消息:
Undefined symbols for architecture armv7:
"_RCTDefaultLogFunction", referenced from:
-[momsindonesiaTests testRendersWelcomeScreen] in momsindonesiaTests.o
"_RCTSharedApplication", referenced from:
-[momsindonesiaTests testRendersWelcomeScreen] in momsindonesiaTests.o
"_RCTSetLogFunction", referenced from:
-[momsindonesiaTests testRendersWelcomeScreen] in momsindonesiaTests.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)
我不知道如何再次解决这个错误,请帮我解决这个问题。
谢谢。
ios ×6
xcode ×5
objective-c ×4
swift ×4
react-native ×3
armv6 ×1
armv7 ×1
cocoa-touch ×1
compile-time ×1
gdata ×1
ios4 ×1
iphone ×1
nsautolayout ×1
swift3 ×1
xcode8 ×1