after updating xcode 6.4 to xcode 7 getting this issue - ios

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

Related

Generate-pch command failed when embedding Unity to Swift Project

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?

Cocoapods 0.36.beta.2 unable to use GooglePlus SDKs - Undefined symbols for architecture

After updating to Cocoapods 0.36 beta 2 I experienced following problems in my Swift project:
I am not able to import googleplus-ios-sdk the old way, in my bridging header file:
#import <GooglePlus/GooglePlus.h> //--> FILE NOT FOUND
#import <GoogleOpenSource/GoogleOpenSource.h> //--> FILE NOT FOUND
Which seems to be ok, as for other pods (having the same issue when imported in bridging header) I can simply import proper frameworks in my swift source code files.
When trying to import Google frameworks in swift it works like expected:
import google_plus_ios_sdk //--> OK, no error here
...but it gives me an compilation error when trying to use any of Google's SDK class:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GPPURLHandler", referenced from:
__TMaCSo13GPPURLHandler in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am able to integrate most of my old, Obj-C pods without an issue, but this one causing problems like described above. I have already cleaned up project, as well as removed all files stored in Xcode's DeliveredData directory but it didn't solve the problems.
Is there something I am doing wrong, or it's the problem inside the google-plus-ios-sdk pods? If so, are there any steps I could make to fix it?
Update it looks like FacebookSDK issue was fixed in version 3.22. I have updated description above, as problem is not connected with Facebook SDK anymore.

fatal error: could not build module 'Darwin' in xcode 5.1.1

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?

has anyone opencv framework for Xcode?

I try to create opencv frame work following this instruction
I don't know why but i got an empty framework. I download a framework separately. I add it correctly....everything is fine. But when i type (for example):
#include "opencv/cv.h"
#include "opencv/highgui.h"
#include "stdio.h"
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
cvNamedWindow("Wi", CV_WINDOW_NORMAL);
}
i got this error:
Undefined symbols for architecture i386:
"_cvNamedWindow", referenced from:
_main in main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Maybe somebody knows how to solve this problem. Or maybe anyone has a correctly framework. Plz, send me a link to download a correct framework. I spent many times with it. Help anybody
Here are some small working iOS example projects compatible with XCode 4.5+ with a recent build of the openCV framework:
http://www.github.com/foundry
See if you can get one of those running (they should not require any modifications), then try drag the openCV framework into your project.
You may have issues if you are running xcode4.3, as most of these were created using Xcode 4.5. But this one:
http://www.github.com/foundry/OpenCVSquaresSL
Has three targets. The SL target uses an openCV framework and build settings designed to run with XCode 4.2 under Snow Leopard, it will probably work if the others don't.
Alternatively - better - upgrade to current XCode (4.6)

how to resolve sdk error

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.

Resources