What is a SwiftShims module? - swift2

I'm attempting to transform a Swift v1.2 project into a Swift v2.0 project via Xcode 7.0.
I got this during the build:
Swift had fatal errors constructing the ast context for this module:
missing required module 'SwiftShims' Debug info from this module will
be unavailable in the debugger.
What is the module 'SwiftShims'?
And how would I install it if it is missing?

I was getting a similar error message regarding the SwiftShims module, so this is probably only a partial solution to your case.
I had to clean all the user data Xcode was using and empty all caches. This did the job for me:
How to Empty Caches and Clean All Targets Xcode 4

Related

Error related to angular2-datatable compatible with Ivy

I am using angular2-datatable version 0.6.0 in my angular application which used
Angular Version 2.
We upgraded Angular to use 13.2.0 recently, the application build and compiles successfully.
But I see some console error when I did ng serve.
The errors are related to angular2-datatable saying that is is not compatible with Ivy.
The error is shown below.
Error: node_modules/angular2-datatable/lib/DataTableModule.d.ts:1:22 - error NG6002: Appears in the NgModule.imports of XXXXXXX, but could not be resolved to an NgModule class.
This likely means that the library (angular2-datatable) which declares DataTableModule has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.
I see the latest version of angular2-datatable is 0.6.0.
I tried changing "aot": true or false in Angular.json file and also modified "enableIvy" property in tsconfig.json to true or false, nothing seems to clear those errors.
Any clue on how to resolve this..
In angular.json setting both buildOptimizer and aot properties to false did the job for me.

Cordova ios plugins Failed after build complete when app loading in xcode

Loading XCodewe are getting this error.
Any solution?
FAILED pluginJSON =
["AuthProxy1342781311","AuthProxy","initWebStrategies",[]] 2020-01-24
12:59:00.432213+0530 myJobCard[23188:330651] ERROR: Plugin 'StatusBar'
not found, or is not a CDVPlugin. Check your plugin mapping in
config.xml. 2020-01-24 12:59:00.432347+0530 myJobCard[23188:330651]
FAILED pluginJSON = ["StatusBar1342781312","StatusBar","_ready",[]]
2020-01-24 12:59:00.432539+0530 myJobCard[23188:330651] ERROR: Plugin
'Console' not found, or is not a CDVPlugin. Check your plugin mapping
in config.xml. 2020-01-24 12:59:00.432642+0530 myJobCard[23188:330651]
FAILED pluginJSON = ["INVALID","Console","logLevel",["LOG","Set
javascript initial log level: ERROR"]] 2020-01-24 12:59:00.432821+0530
myJobCard[23188:330651] ERROR: Plugin 'Console' not found, or is not a
CDVPlugin. Check your plugin mapping in config.xml. 2020-01-24
12:59:00.432906+0530 myJobCard[23188:330651]
FAILED pluginJSON =
["INVALID","Console","logLevel",["LOG","Ionic Native: event fired
after 444 ms"]] 2020-01-24 12:59:00.433063+0530
myJobCard[23188:330651] ERROR: Plugin 'SMPSettingsExchangePlugin' not
found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
We are using the following versions in npm:
version image
List of plugins which we are using in our project:List of plugin verions
We are trying the following solutions:
In X-Code, goto Build Phases -> open the Compiled Sources dropdown. Click + and add the missing plugin .m file that should be in your Plugins directory (but is missing from the compiled sources).All ready.M file is available . please follow the image in x-code All plugins .m files
In short:
delete ./plugins/ios.json,
then delete ./platforms/ios,
then run cordova platform add ios
then cordova build. Deleting ios.json
Sorry to say that you aren't providing a lot of information, which makes guessing a lot harder - what app are you trying to build? Is the SMP SDK installed? It does look a little to me that the project config is out of sync with the sources, which may happen if you blindly delete folders in Cordova :)
To be safe when Cordova runs into hiccups, I usually
Remove the offending plugins with cordova plugin remove <id>
Remove the offending platform with cordova platform add <ios>
In case of doubt, get rid of the plugins and platforms folders altogether
Re-add the offending platform via cordova platform add ios
Re-add the offending plugin via cordova plugin add <id>
Also, as a general rule of thumb - do not mess with the platforms folder. As opposed to Ionic sources, the generated output is not meant to be modified, and if there are issues with the output, it is likely that there are issues with your Cordova project settings.
Maybe my CI tutorial gives you another hint or two as well: https://developers.sap.com/tutorials/ci-best-practices-mobile-cordova.html

Build Failed because of duplicate value for resource 'attr/mode' with config

after I upgraded constraintLayout version from 1.1.2 -> 2.0.0-alpha2
I'm getting this error
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
/Users/x/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0-rc01.aar/
d5741c4d219b7f0eeb18436ff6f46f63/res/values/values.xml:1104:5-1169:25: AAPT: error: duplicate value for resource 'attr/mode' with config ''.
/Users/x/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0-rc01.aar/
d5741c4d219b7f0eeb18436ff6f46f63/res/values/values.xml:1104:5-1169:25: AAPT: error: resource previously defined here.
appCompat version is v7:28.0.0-rc01
this issue is reproducible on AS 3.3 canary 3 & 3.2 stable & 3.1.4 & 3.0.1 version
how can I figure out this issue?
The error message looks like the kind you can get if you mix Android X with Support Library, at least that is how it was when I found it.
If you use any Android X dependencies, you can't use any of the old Android Support Library dependencies, or else you're going to get duplicate resources and other problems when merging them all into one apk.
Make sure you are on either all Android X, or all Support Library. If you're moving to Android X, make sure you have
android.useAndroidX=true
android.enableJetifier=true
in your gradle.properties so that your other dependencies get treated as if they were Android X.
why you use appcompat-v7-28.0.0-rc01 instead of appcompat-v7-28.0.0 ?
or even androidx.appcompat:appcompat:1.0.0 ?
rc01 means release candidate; for testing purposes only.

Titanium Android module fails with "does not have a main jar file"

I've created my own new Android Titanium module. The module build was successful and I have the artefact in the dist directory.
I've dropped the zip file inside my project, setup tiapp.xml, cleaned the project, but when running on the device I'm getting the red screen saying
Uncaught Error: Requested module not found: com.myproject.mymodule
I even tried extracting the zip manually and not let Studio do it. I cleaned the project several times.
Why wouldn't it find my module?
EDIT
I now notice a WARN message while compiling the app:
Module com.myproject.mymodule version 1.0.0 does not have a main jar file
I'm doing an ant build from eclipse and everything seems fine. I see the jar file created and present in the module directory inside my project.
Was facing the same error right now and I had a look at the place the error messages appears. It's searching for module.manifest.name.toLowerCase() + '.jar'. So have a look at the modules/android/com.myproject.mymodule/1.0/ folder: the jar file should have the name that is inside the mainifest file (name tag)
The the warning should disappear and the module should be loaded correctly.
You can try doing packaging the module in SDK location or in the particular project and see if things work. What I have always done is packaging the module in SDK location and add it in tiapp.xml of the project I want to use the module without facing any error like this.

Is SpringSource Tool Suite 2.6 Grails support broken?

I have recently updated my STS from 2.5.2 to 2.6. Since then, each grails project shows an error in the conf/spring/resources.groovy file reading: Description Resource Path Location Type
Internal compiler error: java.lang.VerifyError: (class: org/codehaus/jdt/groovy/internal/compiler/ast/JDTClassNode, method: initialize signature: ()V) Bad access to protected data at org.codehaus.jdt.groovy.internal.compiler.ast.JDTResolver.createClassNode(JDTResolver.java:461) resources.groovy /GrailsProject/grails-app/conf/spring line 0 Java Problem
The resources.groovy file is as good as empty (in default state), and if I delete it, the error is shown on the DataSource.groovy, so the file itself seems not to be the cause.The used groovy compiler version is 1.7.3.I have made a clean STS 2.6 install, installed the groovy and grails plugins and got the same error.What could be the problem? And is there a solution to this not resulting in downgrading to 2.5.2 again? Thank you
Take a look at your preferences Groovy -> Compiler. Are you by any chance accidentally using Groovy 1.6?
EDIT
That didn't solve the problem, but as described in http://forum.springframework.org/showthread.php?p=357361, upgrade to the latest dev build of Groovy-Eclipse as well as Grails Tooling and that should work.

Resources