iOS remote build fails in Visual Studio TACO - ios

I develop cordova app with Visual Studio 2015 in Windows7.
Node version on Mac is v5.1.0.
While running remotebuild on Mac, start building from Visual Studio.
In emulator mode, it seems to build correctly (msk.test.build.app is created in 'platforms/ios/build/emulator'.)
In device mode, build fails with error below.
I found 'platforms/ios/build/device' is not created, but don't know how to fix.
Submitting new build request to: https://Macintosh.local:3000/cordova/build/tasks?command=build&vcordova=5.4.0&cfg=debug&options=--device&buildNumber=1403&loglevel=warn
------ new build: {"command":"build","vcordova":"5.4.0","cfg":"debug","options":"--device","buildNumber":"1403","loglevel":"warn","status":"Uploaded","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildLang":"ja-JP","buildDir":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403","logLevel":0,"submissionTime":"2015-11-18T21:38:43.650Z","changeList":null,"buildSuccessful":false,"messageArgs":null,"message":"Uploaded build request payload.","tgzFilePath":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403/upload_1403.tgz","appDir":"/Users/User/.taco_home/remote-builds/taco-remote/builds/1403/cordovaApp","statusTime":"2015-11-18T21:38:43.652Z"}
error - Build failed with error Command failed: /bin/sh -c xcrun -v -sdk iphoneos PackageApplication platforms/ios/build/device/msk.test.build.app -o /Users/User/.taco_home/remote-builds/taco-remote/builds/1403/cordovaApp/platforms/ios/build/device/BuildTest2.ipa
xcrun: note: PATH = '/Users/User/.taco_home/node_modules/taco-remote-lib/1.2.0/node_modules/taco-remote-lib/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:”/Applications/Adobe'
xcrun: note: SDKROOT = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk'
xcrun: note: TOOLCHAINS = ''
xcrun: note: DEVELOPER_DIR = '/Applications/Xcode.app/Contents/Developer'
xcrun: note: XCODE_DEVELOPER_USR_PATH = ''
xcrun: note: xcrun_db = '/var/folders/_4/x16l03kx0mxbgd6w_5zp0y5w0000gn/T/xcrun_db'
xcrun: note: xcrun via PackageApplication (xcrun)
xcrun: note: database key is: PackageApplication|/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk||/Applications/Xcode.app/Contents/Developer|
xcrun: note: lookup resolved in '/var/folders/_4/x16l03kx0mxbgd6w_5zp0y5w0000gn/T/xcrun_db' : '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/PackageApplication'
MDAVSCLI : error : Specified application doesn't exist or isn't a bundle directory : 'platforms/ios/build/device/msk.test.build.app'
-------------------------------------
I tried node#0.12.7 on Mac, it works better thanks!
Building works fine and .ipa is created both on Windows/Mac, but stops installing app to my iphone connected by USB to Windows.
Visual Studio output console shows below( the words may be different because mine is Japanese).
:
:
1> ------ copying to project: iOS
2>------ start configuration: project: MSK App, composition:Debug iOS ------

There is a compatibility issue between your version of Node and Cordova 5.4. We are working on fixes both to remote build and Visual Studio to address some of these, but in the meantime I suggest you downgrade to Cordova 5.3 and also take an earlier version of Node (4.2.2 should be OK). That should fix the issue.
(Disclosure: I work on the Tools for Apache Cordova in Visual Studio at Microsoft)

There are known issues with Node version > 4 and Cordova <= 5.3.3 that have been documented here. Also we are seeing issues with Cordova 5.4 and are recommending to downgrade as Michael suggests.
Look Specifically at -
Build not executing when using Cordova with Node.js 5.0.0+ and Cordova 5.3.3 and below
Build hangs or does not execute when building for iOS with Cordova < 5.3.3 and Node.js 4.0.0+
Subhag Oak
(Microsoft)

Related

Deploying to iOS device from Unreal fails

I'm attempting to build and deploy an Unreal project to an iPhone, but it's failing to deploy on two errors. Xcode v11.3.1, Unreal v4.22.
LogShaderCompilers: Error: /tmp/3689_966125236.metal(0): Xcode's metal shader compiler was not found, verify Xcode has been installed on this Mac and that it has been selected in Xcode > Preferences > Locations > Command-line Tools.
LogOutputDevice: Warning: Script Stack (0 frames):
LogMac: Error: appError called: Assertion failed: [File:/Users/build/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 4523]
Failed to compile global shader TSlateElementPSFonttruetrueA . Enable 'r.ShaderDevelopmentMode' in ConsoleVariables.ini for retries.
and
[DD] ... Error: Failed to connect to bundle 'com.dock10.FACE'
So far I've:
Verified the metal compiler location using xcrun -sdk macosx -find metal
Verified Xcode has been installed and that it has been selected in Xcode > Preferences > Locations > Command-line Tools.
Successfully packaged and deployed a simple swift project to the iPhone through xcode
Tried pretty much every suggestion I can find on Google
Delete Binaries, Build, Intermediate, Saved folders in project folder, then Generate Xcode project
Entered r.ShaderDevelopmentMode into UE4 commandline
I don't have an apple dev license, do I need one to build and deploy my unreal project to one local iPhone?
Thanks!
So installing XCode 10.1, as mentioned in the iOS Development Requirements for 4.22 seems to have fixed the shader error, great!

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.

Command xcodebuild failed with exit code 65 - NativeScript

I have a NativeScript project that I am running on my desktop. When I clone it to my laptop, I get the following error message after I run tns run ios --emulator:
Build settings from command line:
ARCHS = i386 x86_64
CODE_SIGN_IDENTITY =
CONFIGURATION_BUILD_DIR = /mypath/exampleproject/platforms/ios/build/emulator
ONLY_ACTIVE_ARCH = NO
SDKROOT = iphonesimulator10.3
SHARED_PRECOMPS_DIR = /mypath/exampleproject/platforms/ios/build/sharedpch
VALID_ARCHS = i386 x86_64
xcodebuild: error: The workspace named "exampleproject" does not contain a scheme named "exampleproject". The "-list" option can be used to find the names of the schemes in the workspace.
Command xcodebuild failed with exit code 65
Could it be a naming thing? I started out naming the project one thing, then changed it, but changed back to the original because of the issues. I cloned it onto my Desktop into a different folder, and ran tns run ios --emulator and got the same issue, so it's definitely not a hardware problem.
I've been reviewing answers to the following problem here, but it seems like the solution was already integrated into the version of NativeScript that I am running.
Laptop:
NativeScript version 2.5.4
OS Version Sierra 10.12.1
Ok, so it's the simplest solution in the world:
The project was originally named Exampleproject (first letter capitalized), I pushed the code (so the project on git is exampleproject, and when I cloned it the resulting folder is exampleproject, so instead I just have to clone it into Exampleproject:
git clone https://example#bitbucket.org/myprojects/exampleproject.git Exampleproject
For reference, I'm building from the VS Code terminal in a NativeScript 6.5 project and using the command "tns run ios --force".
I got this same error, when yesterday it built fine but today it errors. Then I decided to open Xcode and realized it wanted to update, and that's due to my Mac updating over night. Once I updated Xcode the build and run worked fine.
Fissh

Error building app for ios in phonegap (for android is working fine)

I am developing an app with phonegap and I have always been testing the app using the android simulator and I have not had any problems, but I can not get it to work for iOS.
I'm working on a Mac OS mavericks and have installed Xcode.
When I run the command "phonegap run ios", I get the following:
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = /Users/usuario/Desktop/desarrolloapp/nombreapp/platforms/ios/build/emulator
SDKROOT = iphonesimulator7.1
VALID_ARCHS = i386
xcodebuild: error: The project ‘NombreApp.xcodeproj’ does not contain a target named ‘NombreApp’.
[error] /Users/usuario/Desktop/desarrolloapp/nombreapp/platforms/ios/cordova/build: Command failed with exit code 65
Any idea about what's going on?
EDIT: I solve this doing:
Remove ios folder from platforms.
Run again (phonegap run ios).
Install ios-sim with command sudo npm install -g ios-sim.
All worked fine!
A lot of thanks.
Best regards.
Manually create target with name NombreApp in Xcode as given this link :
->
How to create or define a new target in a custom Xcode project template
Regards,

Cordova command-line build fails in /tmp on Mac

I get a linker error building a brand-new PhoneGap app from the command line. It creates a bunch of files, and if I open the created .xcodeproj in Xcode, it builds just fine. So what's wrong with my command-line environment?
$ phonegap create /tmp/buildtest-ios
$ cd /tmp/buildtest-ios
$ phonegap -V build ios
[phonegap] detecting iOS SDK environment...
[phonegap] Checking iOS requirements...
[phonegap] using the local environment
[phonegap] compiling iOS...
[phonegap] Generating config.xml from defaults for platform "ios"
[phonegap] Compiling app on platform "ios" via command "/private/tmp/buildtest-ios/platforms/ios/cordova/build"
[error] An error occurred while building the ios project.** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
** BUILD FAILED **
The following build commands failed:
Ld /private/tmp/buildtest-ios/platforms/ios/build/emulator/HelloWorld.app/HelloWorld normal i386
(1 failure)
If I run the offending Ld command myself from the command line, I get "file not found". Does that mean the compiler failed and the linker error is just a red herring?
This is PhoneGap 3.3.0-0.18.0 on Mac OS X 10.9. I can create and build an Android app with this installation, no trouble. I get the exact same behavior if I use cordova directly. I've tried it on two Macs with the same symptom.
I finally discovered the answer using the cordova command-line tools. Cordova has a -d flag which is way more verbose than PhoneGap's -V flag. The linker was failing with a bunch of errors like
duplicate symbol _OBJC_METACLASS_$_CDVTimer in:
/private/tmp/buildtest-ios/platforms/ios/build/emulator/libCordova.a(CDVTimer.o)
/tmp/buildtest-ios/platforms/ios/build/emulator/libCordova.a(CDVTimer.o)
Note that /tmp on Mac is a symlink to /private/tmp, so these are pointing to the same file. No wonder they're duplicate symbols! So why is it trying to include the same file twice?
I tried creating a new test project in an empty folder /private/my-new-tmp2/buildtest-ios. Building it failed with the same error. So apparently something is weird with Cordova's iOS projects and the Ld linker in the /private directory on Mac OS X 10.9, and I'm the only person who's ever tried this. (As I said, building for Android works fine.)
In case someone else ever runs into the same problem, the solution is to build the project in /Users/me/some/directory rather than anywhere in /tmp or /private. Problem solved.
This may be because your framework references are corrupted or point to nowhere. In the left of XCode under 'Frameworks' and 'Resources' try re-adding anything you added yourself. Chances are with Cordova its a plugin SDK you are using that has been updated or deleted.
I had a similar issue while placing my project under /var/www/PROJECT on mac. I was getting the duplicate errors along with "../cordova/build: Command failed with exit code 65".
I was getting the duplicate errors because /var/www/ is also /private/var/www/
Solution was to move my project as described above to /Users/username/some-other-dir/...
I then ran phonegap run ios and all worked!

Resources