简体   繁体   中英

an error “ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386”

We have Xcode Version 6.1.1 (6A2008a) .Resently my clinet send new project.it some one developed 45%.So then i code run on my Xcode i got errors like this

ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386

After doing my R&D about this errors.Some one told changed Architectures in Xcode .Then i Changed like this

Architectures:Standard architectures(armv7,arm64)-$(ARCHS_STANDARD)
Build Active Architecture Only  NO
      Debug                             NO
      Release                           NO
Valid Architectures:arm64 armv7 armv7s

Please guide me how to solved this

My OS X version 10.9.4 Processor:2.5GHz Intel Core i5

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

-- Means your class ServiceViewController file is missing

type 1

Check if that file is included in Build Phases -> Compiled Sources

type 2

Make sure the ServiceViewController is a Target Member;

在此处输入图片说明

type 3

your class "Format" is involved in the problem. Check your declaration of this class, especially if you did it inside an other class you probably forget the @implementation or some stuff like that

type 4

the above three types are not working fine please ref this link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM