I have my prefix pch file but I don't know why its giving me this error. Please help.
clang: error: no such file or directory: '/Users/djtakeuchi/Documents/Xcode Projects/Xcode Supplied Source Code/BirthdayReminder/BirthdayReminder/user-interface/view-controllers/../../BRBirthdayEditViewController.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
prefix.pch file:
//
// Prefix header for all source files of the 'BirthdayReminder' target in the 'BirthdayReminder' project
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
Related
I have a Unity app which uses Vuforia. I'm trying to embed this Unity app within a Swift Project. I am following the guide given here Integrating Unity Project into Xcode Swift Project. However when I build the project I get this error:
<unknown>:0: error: generate-pch command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
This is my Bridging-Header.h file
#import <Foundation/Foundation.h>
#ifndef BRIDGING_HEADER
#define BRIDGING_HEADER
#import <UIKit/UIKit.h>
#import "UnityUtils.h"
#import "UnityAppController.h"
#import "UnityInterface.h"
#endif /* BRIDGING_HEADER */
This is my project structure:
My xcode Version is 9.2 and Unity Version is 2017.3.1f1
Any suggestions on what I am doing wrong?
The lite version of one of my app used admob.
Original lite version and full version work well.
I try to merge the lite version and full version in same project as different targets.
I use constant _lite to switch to lite version
//ConstDefine.h
#define _lite
ViewController1.h
#include "ConstDefine.h"
#ifdef _lite
#import "GADBannerViewDelegate.h"
#class GADRequestError;
#class GADBannerView;
#endif
#interface ViewController1 : UIViewController <
#ifdef _lite
GADBannerViewDelegate,
#endif
..
>
#ifdef _lite
#property (nonatomic,retain)GADBannerView* admobView;
#endif
//...
}
ViewController1.m
#import "ViewController1.h"
#ifdef _lite
#import "GADBannerView.h"
#endif
#ifdef _lite
#synthesize admobView;
#endif
I also added AdSupport.framework StoreKit.framework to lite version target.
but compile error reports:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in ViewController1.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in ViewController1.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I checked GoogleMobileAds.a, it has been add to target lite version.
Your comment welcome
I am getting this issue after updating xcode 6.4 to 7.0.
I am using Objective C
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (#rpath/AFNetworking.framework/AFNetworking) for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How to fix this ?
I tried to add Prefix Header but i was unable to get LLVM 6.0 there i am getting LLVM 7.0”
I found this SO post that might have the solution. Keith Smiley suggested these import statements:
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#endif
Project getting build in xcode 5.0.1 but not in xcode5.1.1. I have tried to remove arm64 from valid architecture and build architecture but I am getting same error.
I have referred lots of post on stackoverflow but no one help on this issue.
Can anyone help me on this?
EDIT: Here is the screenshot of error message.
Project -> Build Phases -> Link Binary With Librairies -> add (+) Foundation.framework.
Your project-Prefix.pch should look like:
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
Or, if you have Enable Modules in Build Settings:
#ifdef __OBJC__
#import UIKit;
#import Foundation;
#endif
Else, have you tried to re-install Xcode?
i am adding a a swiper sdk in my application. when i run its test app it work fine but when i import my file to it .get error
ld: library not found for -lCardAnalyLib1
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i searched for the error but dint get how to resolve. nd some time armv error
(null): Library not found for -lCardAnalyLib1 it is .a typefile
#import <UIKit/UIKit.h>
#import "AudioAnalyLib.h"
#import <QuartzCore/QuartzCore.h
these are pre imported file but if i import any other file get above error
You need to add the .a file to your target. Choose the Build Phases tab of the target in Xcode, open up the Link Binary With Libraries section, and add your library file.