iOS simulator netbeans not working - ios

When trying to run an app build in Netbeans the system gets stuck when connecting to the simulator.
this my current configuration:
OSX El capitan
Netbeans 8.1
Node.js and npm = V4.6.0 LTS
Xcode 8.0
Cordova 6.3.1
this is what the output gives, after build succeeds:
When trying to run an app build in Netbeans the system gets stuck.
this my current configuration: OSX El capitan
Netbeans 8.1
Node.js and npm = V4.6.0 LTS
Xcode 8.0
Cordova 6.3.1
this is what the output gives, after build succeeds:
build-ios-ipa: build-ios: ios-run-device: ios-run-simulator: No
matching processes belonging to you were found Result: 1 Usage of
'--family' is deprecated in 3.x. Use --devicetypeid instead. Failed to
find class DTiPhoneSimulatorSystemRoot at runtime. Result: 1 sim-ios:
BUILD SUCCESSFUL (total time: 36 seconds)

Related

When running 'ionic build ios' on macOS with node 7 I get stuck on this message: stdout maxBuffer exceeded. How could I solve it?

Suddenly I started having this problem when trying to build my iOS app with ionic build ios . I don't understand what could be causing it, because it was running just fine, then in the next day I get this message:
...
...
Running command: HC-Ionic/hooks/after_prepare/010_add_platform_class.js HC-Ionic
Running command: HC-Ionic/hooks/after_prepare/020_remove_sass_from_platforms.js HC-Ionic
stdout maxBuffer exceeded
The only thing I remember doing before this problem started happening was changing my node version sometimes using the application 'n'. But I already uninstalled the versions, set up the right one, but still was not able to figure out, trying to search on the internet.
This is my system info:
Cordova CLI: 8.1.2 (cordova-lib#8.1.1)
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS
Node Version: v7.10.1
Xcode version: Xcode 12.4 Build version 12D4e
This configuration is necessary because my app only runs with this node version.
Does anyone have any ideas?
I found a solution. Apparently I had too many simulators on xcode and this exceeded the json in the build. If the list exceeds 200kb, node 7 doesn't compile. Just removed some unnecessary simulators and it worked.
Node versions prior to v 12.x use a default maxBuffer value of 1 kilobyte (source), which is realtively small.
Later releases increased the default maxBuffer to 1 megabyte (source) - you should really consider upgrading as the release of Node you're running is ancient (EOL'd in 2017), at least by software standards.

Phonegap-nfc plugin causes build to fail on xcode

I am using ionic 5 capacitor and i am trying to get phonegap-nfc plugin to work. It works fine on android but while building with xcode building fails.
Steps to reproduce with fresh project (selected Angular framework when it was asked):
ionic start myApp blank --capacitor
cd myApp
ionic build
ionic capacitor add ios
npx cap open ios
It opens in xcode and i can build and run project on simulator just fine. Then i install phonegap-nfc plugin:
npm install phonegap-nfc
npm install #ionic-native/nfc
ionic cap sync
When i try to build again i receive semantic issue with cordovaplugins. There are 5 errors in NfcPlugin.m file saying 'new' is unavailable with note saying 'init has been explicitly marked unavailable here. How to fix this issue?
Some version info of my system:
Xcode version: 12.5 (12E262)
macOS version: Big Sur 11.3
node version: 16.0.0 (also tried with 10.16.0)
npm version: 7.10.0
Screenshot of xcode errors
I will answer my own question as i happened to find solution. I dont what is broken in xcode 12.5, but uninstalling xcode 12.5 and installing xcode 11.7 i was able to build succesfully and scan NFC tags.

visual studio cordova ios deploy for remote build

My problem is
Severity Code Description Project File Line Suppression State
Error Remote build error from the build server http://xxxxxx:3000/cordova - Derleme, Command to fetch XCode version failed. Your build may fail if the version installed is 8.0 or greater.
My Version:
Xcode version 7.2
Cordova version 6.3.1
Node 4.4.3
Npm 2.15
Cordova android 5.2.1
Cordova iOS 4.2.0
I had same issue previously, and I resolved it by go to my mac and accept the license agreement of xcode.
Run this in terminal : sudo xcodebuild -license and then type agree.

Apache Cordova/Visual Studio 2015 tools fails to launch app in IOS simulator

I am trying to deploy a simple newly created Cordova app on Mac from vs2015 it seems that the project is build successfully but I am getting the following error in visual studio and no app is installing or running on simulator.
Starting launch process C:\Program Files (x86)\nodejs\node.exe "C:\Users\RezaR\AppData\Roaming\npm\node_modules\vs-tac\emulator.js"
--platform ios --action launch --path "c:\users\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json"
--serverUrl http://RezaMac:3015/cordova --language en-US --loglevel warn --cliVersion 5.4.1 --npmInstallDir "C:\Users\RezaR\AppData\Roaming\npm" --deployTarget "iPhone 5S" Timed out connecting debugger to remote Apache Cordova app. See Output window for JavaScript console output.
------ Cordova tools 5.4.1 already installed.
Requesting emulate on iOS Simulator for buildNumber 1462 on server http://RezaMac:3015/cordova... Failed to launch iOS remote for build c:\users\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json to http://RezaMac:3015/cordova for deploy target iPhone 5S: Http 404: {"command":"build","vcordova":"5.4.1","cfg":"debug","loglevel":"warn","status":"Error","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildLang":"en-US","buildDir":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462","buildNumber":1462,"options":"","logLevel":0,"submissionTime":"2016-03-12T21:30:32.929Z","changeList":{"deletedFiles":[]},"buildSuccessful":true,"messageId":"EmulateFailedTimeout","messageArgs":[null],"message":"Error: timed out launching iOS simulator.","tgzFilePath":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462/upload_1462.tgz","appDir":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462/cordovaApp","statusTime":"2016-03-12T21:32:17.020Z","appName":"BlankCordovaApp2"}
------ Cordova tools 5.4.1 already installed.
Requesting debug on remote iOS device for buildNumber 1462 on server http://RezaMac:3015/cordova... Failed to Debug iOS remote for build c:\users\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json to http://RezaMac:3015/cordova : iPhone 5S
Then I tried below as mentioned in this post
On the mac, go to ~/.taco_home/node_modules/taco-remote-lib/<VERSION>/node_modules/taco-remote-lib/ and run npm uninstall ios-sim && npm install ios-sim#5.0.4
but no chance
My Environment:
On windows:
Vs2015 Update 1
Cordova 5.4.1
on Mac
Yosemit
Xcode 7.2.1
Simulator 9.2
Cordova 5.4.1
Node 5.7.1
I have found the problem and solution, in case of somebody else has the same problem:
first run remotebuild saveconfig in macos terminal
Open the RemoteBuild.config file in the Text Editor from the path of the previous step
Change value of appLaunchStepTimout to 60000 (1 min)
Change value of emulatorLaunchTimeout to 60000 (1 min)
Save the file
run remotebuild on terminal
Run the project from Visual studio again

why i am getting "command failed with exit code ENOENT" when adding ios in cordova?

I am creating one cross platform app in cordova i am getting below error:
Creating ios project...
Error: C:\Users\Jay\.cordova\lib\ios\cordova\3.4.1\bin\create: Command failed wi
th exit code ENOENT
at ChildProcess.whenDone (C:\Users\Jay\AppData\Roaming\npm\node_modules\cord
ova\src\superspawn.js:126:23)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:795:12)
You can't add the ios platform to your cordova project from an OS other than Mac OS X.
It's because cordova needs XCode to be present so it can create an XCode project with which it will build the ios binaries.
See the official documentation here.
Relevant part :
Apple® tools required to build iOS applications run only on the OS X operating system on Intel-based Macs. Xcode® 6.0 (the minimum required version) runs only on OS X version 10.9 (Mavericks) or greater, and includes the iOS 8 SDK (Software Development Kit). To submit apps to the Apple App Store℠ requires the latest versions of the Apple tools.

Resources