Sencha Command - #import 'sencha-touch/default/all' not found - sencha-touch-2

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.

Related

React/RCTBlobManager.h file not found in react-native-pdf issue

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!

Use leveldb-library.framework from firebase for iOS with Xcode9

I would like to be able to use the leveldb-library.framework that google is shipping with their firebase iOS SDK. I don't seem to be able to import the framework.
What I did:
1: copy leveldb-library.framework to project dir
2: in Xcode > Target > Linked Frameworks and Libraries [+] add the framework
3: make sure the header search path it set correctly
4: add a Objective-C++ wrapper class and import the leveldb headers
Getting a linker error:
/Users/ronny/projects/clients/internal/TestCD/TestCD/LevelDB.mm:11:9: fatal error: 'leveldb/db.h' file not found
#import "leveldb/db.h"
^~~~~~~~~~~~~~
1 error generated.
The Headers directory in the framework provides all the headers: db.h, options.h but without the "leveldb" parent directory.
Changing the imports to the following throws the same error:
#import <leveldb/db.h>
#import <leveldb/options.h>
Once I change the imports to this:
#import <leveldb-library/db.h>
#import <leveldb-library/options.h>
the linker is able to find the includes but throws another error:
In file included from /Users/ronny/projects/clients/internal/TestCD/TestCD/LevelDB.mm:11:
/Users/ronny/projects/clients/internal/TestCD/leveldb-library.framework/Headers/db.h:10:10: fatal error: 'leveldb/iterator.h' file not found
#include "leveldb/iterator.h"
^~~~~~~~~~~~~~~~~~~~
1 error generated.
At this point I am no longer sure what can be done in order to resolve this. Adding the import path doesn't help either. Xcode completes the import as such:
Any pointers towards solving this would be greatly appreciated. The project can be found here: https://github.com/ronnyf/TestCD
The framework expects to be called leveldb, but your example calls it leveldb-library.
mv leveldb-library.framework leveldb.framework
mv leveldb.framework/leveldb-library leveldb.framework/leveldb
Update the Xcode project with the renamed framework and it successfully builds.

UI Testing xCode 7.3 - Cannot print variables (i.e 'po app') in the console: (could not build Objective-C module 'Bolts')

I have UI testing project set up and was working perfectly in xCode 7.2. Since I upgraded to xCode 7.3 I cannot print any variables in the console. I set breakpoints in both Application (main project) and UI Test, 'po' command works in the main project but as soon as it reaches UI testing the 'po' command stop working. I have tried almost all the solutions I could find on the internet but still no luck. It complains about the Objective-C module 'Bolts' that I am not using at all in UI testing. Below is how the error message looks like:
(lldb) po app
error: Error in auto-import:
failed to get module 'MyUITestProject' from AST context:
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/Bolts-umbrella.h"
^
/Users/../Pods/Target Support Files/Bolts/Bolts-umbrella.h:7:9: note: in file included from /Users/../Pods/Target Support Files/Bolts/Bolts- umbrella.h:7:
#import "BFAppLinkReturnToRefererController.h"
^
/Users/../Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.h:14:9: error: include of non-modular header inside framework module 'Bolts.BFAppLinkReturnToRefererController'
#import <Bolts/BFAppLinkReturnToRefererView.h>
...
...
Is there anyone run into the same issue? Does anyone knows what cause this failure and any advice?
Delete:
/Users/{User}/Library/Developer/Xcode/DerivedData
and then restart your Xcode.

GADBannerViewDelegate.h file not found in TOLAdAdapterAdMobAds.h

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.

Using maps in a native App

Building an ios app using apache cordova 2.1. Building and styling is going fine but maps are not.
I found a plugin for the maps but simply cannot get it to work:
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit
I also found an example html file but could :
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/MapKitPlug/example
1/
So i added the MapKit framework into xcode which was pretty straight forward:
http://blog.thinketg.com/blog/david-brainer-banker/xcode-4-tips-adding-frameworks-to-your-project
2/
Added the .m and .h files
3/
Added and linked the .js file to my index.html
4/
copied the example html above.
5/
Added the Mapkit to the .plist file as per the instructions
When I try to run the map I get the following errors:
2012-11-05 14:21:29.505 sawdaysApp[25398:c07] Multi-tasking -> Device: YES, App: YES
2012-11-05 14:21:30.895 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
2012-11-05 14:21:30.895 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","showMap",[]]
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-11-05 14:21:30.897 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","setMapData",[{"diameter":1000,"offsetTop":25,"lon":-123.104446,"buttonCallback":"cbMapCallback","lat":49.281467999999997,"height":360,"atBottom":true}]]
I assuming that the error is with the MapKitView in the CDVPluggin, but really not sure.
Has anyone had any experience with this and succeeded?
THIS WORKS. AT LAST :)
1 - Follow this guide to start the app http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html
2 - Download and add mapkit plugin native files (all of them) in the plugins folder and the .js file in the www folder. https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit.
Make sure you drage the pluggins folder to the pluggins folder in xcode otherwise the app will not link the files properly.
3 - Whitelist * to whitelist all the domains and Add the plugin reference on Cordova.plist MapKitView as value and key
4 - Donwloaded and included into the sawdaysTestApp/pluggins folder JSONKit.h and JSONKit.m https://github.com/johnezang/JSONKit
5 - Change mapkit.h and .m
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVPlugin.h>
#else
#import "CDVPlugin.h"
#endif
to
#import <Cordova/CDVPlugin.h>
and
change mapkit.m
from
#ifdef CORDOVA_FRAMEWORK
// PhoneGap >= 1.2.0
#import <Cordova/JSONKit.h>
#else
// https://github.com/johnezang/JSONKit
#import "JSONKit.h"
#endif
to
#import "JSONKit.h"
Get the example from https://github.com/phonegap/phonegap-plugins/blob/master/iPhone/MapKitPlug/example/index.html. Copy and paste entire example into index.html.
7 - Change the index.html
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8" src="MapKitPlug.js"></script>
to//
<script type="text/javascript" src="cordova-2.1.0.js"></script>
<script type="text/javascript" charset="utf-8" src="MapKit.js"></script>
8 - Run the simulator. click the show map button.
I'd just like to add two things:
1, That as of Cordova 2.3.0 the filename
Cordova.plist
Is now
yourProject-Info.plist
yourProject being what ever your project name is.
2, I found that you still need to 'Link Binary With Libraries' by doing the following:
Click on your project
Select Build Phases
Click the arrow on Link Binary With Libraries
Click Add
Search for MapKit.framework and click Add