退出代码1(使用-v查看调用)错误?

时间:2022-06-04 10:45:54

退出代码1(使用-v查看调用)错误?I am getting this below error can any one suggest me how to rectify this error. Here is my error

我将会得到下面这个错误提示我如何改正这个错误。这是我的错误

 warning: ignoring file /Users/xyz/Downloads/CC3x/CC3x/libFTC_RELEASE.a, missing required architecture i386 in file /Users/xyz/Downloads/CC3x/CC3x/libFTC_RELEASE.a (2 slices)ignoring file /Users/xyz/Downloads/CC3x/CC3x/libFTC_DEBUG.a, missing required architecture i386 in file /Users/xyz/Downloads/CC3x/CC3x/libFTC_DEBUG.a (2 slices)

Undefined symbols for architecture i386:
 "_OBJC_CLASS_$_FirstTimeConfig", referenced from:
  objc-class-ref in CC3xUtility.o
  objc-class-ref in CC3xMainViewController.o
  objc-class-ref in CC3xMainViewController_iPad.o
 ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

3 个解决方案

#1


1  

This means you are trying to build your project and one of your valid architectures is i386 but you are including a library that doesn't have an i386 slice.

这意味着您正在尝试构建您的项目,并且您的有效体系结构之一是i386,但是您包括一个没有i386片的库。

#2


1  

Thanks to all it worked for me on device by setting active architectures to YES.

多亏了它,它为我在设备上设置了积极的架构。

#3


0  

Build settings -> enable bitcode : NO

构建设置->启用位码:不。

and add the .a files from cc3000 project file to your project.

并将一个来自cc3000项目文件的文件添加到您的项目中。

It worked for me

它为我工作

#1


1  

This means you are trying to build your project and one of your valid architectures is i386 but you are including a library that doesn't have an i386 slice.

这意味着您正在尝试构建您的项目,并且您的有效体系结构之一是i386,但是您包括一个没有i386片的库。

#2


1  

Thanks to all it worked for me on device by setting active architectures to YES.

多亏了它,它为我在设备上设置了积极的架构。

#3


0  

Build settings -> enable bitcode : NO

构建设置->启用位码:不。

and add the .a files from cc3000 project file to your project.

并将一个来自cc3000项目文件的文件添加到您的项目中。

It worked for me

它为我工作