TNS BUILD FAILED: Error- cannot access IdentityCredential (NativeScript) - sdk

Installed nativescript, cloned the repo, while building the app for android using "tns build android"
Facing this error:
Exact error
Tried specifying the compileSdkVersion 30 as well in the app.gradle file.

Related

Flutter app does not build on ios when cloud firestore is added

When I add the cloud_firestore dependency to my flutter app, the ios build is failing.
The build failure is as follows...
fatal error: module map file
'/Users/myUserName/src/MobileApp/ios/Pods/Headers/Private/openssl_grpc/BoringSSL-GRPC.modulemap' not found
1 error generated.
The flutter app builds an runs on android fine, and I have followed the installation instructions for cloud_firestore for flutter on both ios and android.

Ionic macOS build issue wtih Azure DevOps

I'm trying to build Ionic based framework (Cordova plugin included) for iOS using Azure DevOps - Hosted macOS agent. I have included xcode in the Demands section.
Added Cordova build task and set the platform value to 'ios'
But getting 'Current working directory is not a Cordova-based project' error. Am I missing anything?
2018-11-07T19:49:07.6357620Z Module cache at /Users/vsts/.taco_home/node_modules
2018-11-07T19:49:08.4403560Z cordova already installed.
2018-11-07T19:49:08.4959970Z Adding support plugin.
2018-11-07T19:49:09.2854590Z { CordovaError: Current working directory is not a Cordova-based project.
2018-11-07T19:49:09.2855410Z at Object.cdProjectRoot (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/util.js:170:15)
2018-11-07T19:49:09.2856100Z at /Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/cordova-lib/src/cordova/plugin/index.js:36:40
2018-11-07T19:49:09.2856540Z at _fulfilled (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:854:54)
2018-11-07T19:49:09.2856690Z at self.promiseDispatch.done (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:883:30)
2018-11-07T19:49:09.2856810Z at Promise.promise.promiseDispatch (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:816:13)
2018-11-07T19:49:09.2858330Z at /Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:877:14
2018-11-07T19:49:09.2858660Z at runSingle (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:137:13)
2018-11-07T19:49:09.2858880Z at flush (/Users/vsts/.taco_home/node_modules/cordova/8.1.2/node_modules/cordova/node_modules/q/q.js:125:13)
2018-11-07T19:49:09.2859360Z at _combinedTickCallback (internal/process/next_tick.js:73:7)
2018-11-07T19:49:09.2859510Z at process._tickCallback (internal/process/next_tick.js:104:9)
2018-11-07T19:49:09.2860600Z name: 'CordovaError',
2018-11-07T19:49:09.2861150Z message: 'Current working directory is not a Cordova-based project.',
2018-11-07T19:49:09.2861220Z code: 0,
2018-11-07T19:49:09.2861360Z context: undefined }
2018-11-07T19:49:09.2972390Z ##[error]Task failed
Try adding the following instead of cordova build
npm install
Ionic command (Command: ionic cordova build ios)
Install an apple certificate
Install an apple provisioning profile
Xcode build
Publish to the app store (install from marketplace)

Determining cause of cordova iOS build failure

My cordova phone application is building and running well in android, and now I'd like to build for ios. I can't do this in my linux environment, so I'm using a mini-mac with the Xcode tools installed.
I cloned the git repo to a working tree, and I'm running
cordova build ios
In the build output, I'm getting the following, with "fatal error", "BUILD FAILED" and "Error: ..." in red.
/Users/mgfrobozz/Desktop/asap_cordova/platforms/ios/ASAP Media/Plugins/org.apache.cordova.dialogs/CDVNotification.m:21:9: fatal error:
'Cordova/NSDictionary+Extensions.h' file not found
I found https://issues.apache.org/jira/browse/CB-8659, which indicated this issue (deprecated dependency in ios) was resolved in cordova 4.0.0, but I'm running cordova 6.0.0.
I don't know enough about the cordova guts to know how to fix CDVNotification.
Any suggestions?
Try the command: cordova platform update ios

Cordova IOS Plugin installation

I am pretty new to Cordova and iOS (and MAC). I have everything set up and using Visual studio + Networked Mac. Everything is working, I can build and deploy to Simulator and device.
But when I tried to install a plugin "statusbar", I am getting this build error
"Remote build error from the build server Build failed with error 404 Not
Found: cordova-plugin-statusbar: {1}"
I have installed it in the config.xml, but for some reason when building it is not finding the plugin. Do I need to install it on the mac too or should it be deployed with the rest?
Tried installing the plugin from the Mac terminal into the VS project folder on windows, but same error.
What am I missing?

PhoneGap CLI "cordova build ios" failed

i have created a new hello world project using the following command,
cordova create hello com.example.hello HelloWorld
the project is created successfully, then i add the ios platform by
cordova platform add ios
and to verify i have it added correctly, i type
cordova platform list
the iOS platform is shown in the list. so at this point, according to the PhoneGap tutorial, i can use the command
cordova build ios
to build the iOS version of the project. however, i encounter the following error:
Generating config.xml from defaults for platform "ios"
Preparing ios project
Compiling app on platform "ios" via command "/Users/Aldour/PhoneGap/hello/platforms/ios/cordova/build"
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
Error: An error occurred while building the ios project.
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/compile.js:65:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Socket.<anonymous> (child_process.js:948:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
the results that i have googled are mostly concerning the android version, talking about the invalid environment path setting. i dont know if it is related since i can create and build a PhoneGap project targeting the android platform without problem.
here is my $PATH:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin/node:/usr/local/bin/npm:/Developer/SDKs/android-sdk-macosx/platform-tools:/Developer/SDKs/android-sdk-macosx/tools
EDIT:
problem solved by re-installing xcode from app store
I had the same problem in Android platform, and it was solved with the commands:
cordova platform rm android
cordova platform add android
cordova build android
in Node.Js console. try it in ios.
If you get an error with 'cordova platform add android', you may need to manually remove any android folders in your project folder hierarchy.
This resolved my issue:
cordova platform remove ios
cordova platform add ios
cordova build ios
If you run the build with --verbose, you will probably see some permission issues. By default, XCode creates a folder of the build in ~/Developer, if you haven't changed it. There probably is a permissions issue when creating that folder. Just execute the following command: sudo cordova bulid ios
That should fix your issue.

Resources