I'm trying to compile a code using Reachability by Apple. Using an iPhone 5s on the simulator works.
But in iOS it's like some libraries are not included in the device.
It tells me that:
/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h:6:9: note: in file included from /Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h:6:
#import "Reachability.h"
^
/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/Tools/Reachability/Reachability.h:49:9: error: 'SystemConfiguration/SystemConfiguration.h' file not found
#import <SystemConfiguration/SystemConfiguration.h>
^
<unknown>:0: error: failed to import bridging header '/Users/rebouhaymen/Desktop/Projets/UrBike/UrBike/UrBike/UrBike-Bridging-Header.h'
Resolved. It seems I used 6.0 Xcode version instead 6.0.1. It works now.
Related
When trying to build my custom framework on simulator, I get this error
No type or protocol named 'NSURLSessionDelegate'
But it's working fine on devices
I added x86_64 and i386 to the valid architecture but still get this error
this this the header file where the error appears:
#import <Foundation/Foundation.h>
#interface CustomManger: NSObject <NSURLSessionDelegate,NSURLSessionTaskDelegate, NSURLSessionDataDelegate,NSURLSessionDownloadDelegate>
#end
i'm trying to build my project on XCode with IPhone 6 IOS v11.0 in react native latest version v0.49 after installing react-native-camera and it failed.
I get the error
Redefinition of 'RCTMethodInfo'
typedef struct RCTMethodInfo {
const char *const jsName;
const char *const objcName;
const BOOL isSync;
} RCTMethodInfo;
I also faced the same issue, I hope it would help you out
Just open project in Xcode and search globally for "RCTBridgeModule.h"
and you will get 4 to 5 files , so just open your third party camera file
and replace
import "RCTBridgeModule.h" with #import <React/RCTBridgeModule.h>
I am trying to get the MIDI over BLE working as discussed at session 501 at the WWDC 2014.
I get an error "file not found" when trying to #import CoreAudioKit/CoreAudioKit.h framework
I have included the framework in the build menu and tried putting the #import line in the .h or .m ViewController file.
It recognizes and compiles CoreBluetooth/CoreBluetooth.h with no problems.
This is a brand new installation of Xcode 6 downloaded yesterday (13 Sept 2014)
I feel like Apple has not turned on the switch for CoreAudioKit for iOS.
Any guidance on what I am doing wrong would be most gratefully received.
Thank you,
Ken
CoreAudioKit is not compatible with the iOS Simulator. Run it on a device, and it should build just fine
I you want to use the simulator for some other tests (not related to midi over bluetooth) you can use a conditional import of the framework:
#ifdef __APPLE__
#include "TargetConditionals.h"
#if TARGET_IPHONE_SIMULATOR
#compatibility_alias CABTMIDICentralViewController UIViewController;
#elif TARGET_OS_IPHONE
#import <CoreAudioKit/CoreAudioKit.h>
#endif
#endif
You still have to do optional linking of the framework in your build settings since CireAudioKit is not available at all on the simulator (OS X) platform.
I recently upgraded the RevMob SDK of my cocos2d project, using Xcode 4.5. Below is a code to show what I have done:
#import <StoreKit/StoreKit.h>
#import <RevMobAds/RevMobAds.h>
- (void) applicationDidFinishLaunching:(UIApplication*)application{
[RevMobAds startSessionWithAppID:#"my app id"];
//some code here...
}
On running the project, on device or simulator, the app crashes with this error:
+[RevMobAds startSessionWithAppID:]: unrecognized selector sent to class
However, one thing which might be useful, is that when I added the RevMob framework to my Xcode, it gave me compilation errors (using LLVM GCC 4.2) for which I followed this answer.
This method was included in version 5.0.0 (RevMob changelog), so make sure that the framework that you are using is at least 5.0.0.
I am new to phonegap2.0. Now i want to create iphone app using phonegap. I am using xcode4.2 on snow leopard mac. I installed phonegap on my mac. But now i am following Embedding Cordova Webview on IOS using this below link:
"http://docs.phonegap.com/en/2.0.0/guide_cordova-webview_index.md.html#Embedding%20WebView"
But when i run the coding in xcode4.2 Iphone 5.0 Simulator. I got #import"PGPlugin.h" "file not found" error.
"#ifdef PHONEGAP_FRAMEWORK
#import <PhoneGap/PGPlugin.h>
#else
#import "PGPlugin.h"
#endif".
I have attached the error page Screen Shot for your reference.
Change this part:
#ifdef PHONEGAP_FRAMEWORK
#import <PhoneGap/PGPlugin.h>
#else
#import "PGPlugin.h"
#endif
with the following:
#import <Cordova/CDVPlugin.h>
Also, since you're using version 2.0.0 of cordova, you may need to change everything beginning with PG (for example: PGPlugin) to CDV (ex: PGPlugin --> CDVPlugin).
The thing is the previous versions of plugins used to begin with PG.
Let me know if this works.
This doesn't work for the most recent versions of Cordova / Phonegap.