I got GADBannerViewDelegate.h file not found error in TOLAdAdapterAdMobAds.h although i have already included that file as shown in image below. I have used
pod 'LARSAdController', '~> 3.0'
to install the pod file for it
Just replace
#import "GADBannerViewDelegate.h"
#import "GADBannerView.h"
with
#import <GoogleMobileAds/GoogleMobileAds.h>
This has to be done as GoogleMobileAds SDK is now a framework instead of static library.
After making this change, you may get an error at request.testing = YES; in TOLAdAdapterGoogleAds.m. To correct that, just replace that line with: request.testDevices = #[kGADSimulatorID]; and everything should work fine.
Related
My React Native version is 0.60.5 . I tried to installed react-native-view-pdf library .While Building Xcode it is throwing error says "React/RCTBlobManager.h file not found in react-native-pdf issue"
In your RCTPdfView.m file change the line "React/RCTBlobManager.h" with this
#if __has_include("RCTBlobManager.h")
#import "RCTBlobManager.h"
#else
#import <React/RCTBlobManager.h>
#endif
and delete your application in simulator if exist, then run your project again. I hope it works!
I'm bilding mobile app the following technologies.
react-native: v0.60.0
react-native-navigation: 3.0.0-alpha.2
And I build this app for iOS, then the following error message appears in the ReactNativeNavigation code.
React/RCTConvert.h file not found
The error file is Pods/Development Pods/ReactNativeNavigation/RNNOptions.h, and this is the content of it.
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import "BoolParser.h"
#import "TextParser.h"
#import "NumberParser.h"
#import "DictionaryParser.h"
#import "ColorParser.h"
#import "ImageParser.h"
#import "IntNumberParser.h"
#import "DoubleParser.h"
#interface RNNOptions : NSObject
- (instancetype)initWithDict:(NSDictionary*)dict;
- (RNNOptions *)overrideOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeInOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)withDefault:(RNNOptions *)defaultOptions;
#end
I have already tried,
Following this tutorial
But it didn't work well, so I additionally tried these.
Insert pod 'ReactNativeNavigation', :path => '../node_modules/react-native-navigation' into ios/Podfile.
Run react-native link react-native-navigation and pod install in ios directory
Clean and rebuild the proejct in Xcode.
with react native 0.60+ you don't need to link react native navigation manually.
simply run react-native link react-native-navigation and cd ios; pod install
for more information please see this issue
Screenshot of error
Long time lurker, first time posting. I am attempting migrate my parse.com db to back4app. The migration has gone flawlessly, but now I'm running into trouble changing where the app points to access the parse server. The code I am using came straight from back4app's guides here.
I am running Xcode 8.0, and the app is designed for a minimum of iOS 9. I am using cocoa pods to manage parse as well as several others, so I have the latest version of cocoa pods (1.1.1) and the latest version of parse (1.14.2).
It seems that several solutions for my error have suggested making sure Xcode and the parse pod were up-to-date. Which they are. Another person said they had issues, even though the parse pod said it was updated, the old pod was still being used. I removed parse form my podfile, ran pod update and install, then reinserted parse in the podfile to run 'pod install', but same results.
Anyone have any suggestions?
#import <Parse/Parse.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//Set up Parse
[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
configuration.applicationId = #"....";
configuration.clientKey = #"....";
configuration.server = #"https://parseapi.back4app.com";
}]];
return YES;
}
I hope this helps others that have this or similar issues. I found that there was on old 'parse.framework' file in my workspace directory. Not sure if all these steps are necessary, but here is what I did...
Removed 'pod Parse' from podfile
Ran 'pod update' in terminal
Deleted remaining 'parse.framework' file
Re-added 'pod Parse' in podfile
Ran 'pod update' in terminal
Runs like a charm.
In addition to removing parse.framework from your Xcode project, open up your finder and remove parse.framework from your app directory as Xcode default build settings will include your directory to search for frameworks.
I've updated my project to iOS 9, my podfile, and all necessary files, but it will not build. The source of my grief is in the following error message:
Type arguments cannot be applied to non-parameterized class 'BFTask'
This is the only error that shows, but it shows up multiple times in both PFAnalytics.h and probably more importantly PFObject.h.
Could someone tell me what this means and please suggest a solution? I hope I have provided enough information, but if not, let me know!
The code samples are as follows: In PFObject.h and PFAnalytics.h, everywhere there is the following:
(BFTask PF_GENERIC(XXSOMECLASS *)*) someMethod;
the error is thrown. This is no code of mine, it is PFObject.h and PFAnalytics.h as stated before. Examples of the functions throwing the error in PFObject.h are below
- (BFTask PF_GENERIC(NSNumber *)*)saveInBackground;
- (BFTask PF_GENERIC(NSNumber *)*)saveEventually;
- (BFTask PF_GENERIC(NSNumber *)*)deleteInBackground;
+ (BFTask PF_GENERIC(NSNumber *)*)saveAllInBackground:(PF_NULLABLE NSArray *)objects;
+ (BFTask PF_GENERIC(NSNumber *)*)deleteAllInBackground:(PF_NULLABLE NSArray *)objects;
// .... etc
when clicking on the stop sign the suggestion is to delete PF_GENERIC(NSNumber *), resulting in a method like this
- (BFTask *)xxsomeMethod;
but that doesn't help as it just gets a lot messier
Update 02: The contents of my Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
target: 'BMR' do
pod 'AFNetworking', '~> 2.6'
pod 'ParseFacebookUtils', '~> 1.8'
pod 'Parse'
pod 'ParseUI', '~> 1.1'
pod 'FBSDKCoreKit', '~> 4.6'
pod 'FBSDKLoginKit', '~> 4.6'
pod 'JSQMessagesViewController', '~> 7.2'
pod 'IDMPhotoBrowser', '~> 1.7'
pod 'RNGridMenu', '~> 0.1'
pod 'APHorizontalMenu', '~> 1.3'
pod 'ASIHTTPRequest', '~> 1.8'
pod 'AutoScrollLabel', '~> 0.4'
pod 'CJAMacros', '~> 2.1'
pod 'CrittercismSDK', '~> 5.3'
end
Make sure that you don't have a duplicate version of the Bolts.framework.
If you are using both Parse SDK and Facebook SDK you will encounter a problem where Parse SDK contains an older version of Bolts (currently 1.1.5) and the FB SDK has the newest version of Bolts SDK (>= 1.2.2)
Once you remove an older version of the Bolt.framework that comes with Parse SDK you should be fine.
To check what version of Bolts.SDK you have simply go to the Bolts.framework file, right - click and choose "Get Info".
You have two Bolts.framework, old from FacebookSDK and new from Parse. So go to the FacebookSDK folder from where you added the FacebookSDK into the xcode and delete the Bolts.framework. Keep the new Bolts.framework and everything will be fine now.
If you still is not able to find the old Bolts.framework find the class file showing error and right click it and select show in finder and traceback the facebook folder from the finder and make sure it is in Facebook SDK folder and delete the Bolts.framework. Make sure you don't delete the new Bolts.framework you added from Parse SDK folder.
I had the same problem (spent a few hours investigating whats going on). I messed up old FacebookSDK framework with the one I installed via cocoapods
Check the following path ~/Documents/FacebookSDK to see if there are some outdated SDK
Remove any import of Facebook SDK #import <FacebookSDK/FacebookSDK.h>
Install it via cocoapods
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
or add the new framework manually.
When I run the sencha command like so:
sencha app build production
I get an error which points to the following line in app.scss:
#import 'sencha-touch/default/all';
In my app I have the following folder:
\App\touch\resources\themes\stylesheets\sencha-touch\default
But there is no 'all' folder. Is my application structure broken or is there something else I am missing?
The error might be generated because there's no _all.scss inside
touch\resources\themes\stylesheets\sencha-touch\default
Contents of _all.scss are
#import 'core';
#import 'widgets';
Check application structure again or just create _all.scss manually and see if it solves problem.