How to deploy MobileFirst CLI application to an IOS device? - ios

I am using MobileFirst CLI 7.1. I want to deploy my MobileFirst CLI application to an IOS device. How can I do that?
I navigated to the iphone environment and tried to double click the .xcodeproj. In the XCODE I see that the project is still being shown as library.
I am getting this following error when I try to deploy the application,
. I have gone through stackoverflow questions. None of them were helpful.
I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)

You already asked the second question: How to deploy MobileFirst CLI application to an android device?. The answer is still the same:
Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)
In the Studio you did not have the option to "deploy to a remote server". You had the option to configure the application to point to a remote server (the properties you can edit in the worklight.plist(for iOS) / wlclient.properties file (for Android).
This feature does not exist in the CLI. After building the project, in case you want it to point to a different server, edit the properties in said file(s) to point to the remote server.
The first question is unclear.
I have done the following and was able to launch the project in Xcode and run the app in the iOS Simulator:
mfp create myproject
cd myproject
mfp add hybrid
added an app called "test"
mfp add environment iphone
mfp push
opened the project folder and navigated to apps\test\iphone\native, followed by double-clicking on the .xcodeproj file. The project opened in Xcode successfully and I then clicked on the Run button, and the app launched in the iOS Simulator.

Related

Redirect Flutter SDK path when building iOS build?

I wrote a Flutter app using IntelliJ on my Linux machine. I need to build the ipa file for iOS devices, and I do not have a Mac.
I plan on using a "Mac in the cloud" server to prepare the release build for the App Store. I have been mapping out all of the steps that I need to do to do the whole process, and I got to wondering: if I am opening my project folders on a server somewhere, do I have to configure the path to the Flutter SDK that I will have to download on to server machine?
I have looked at the Flutter.io documentation, but did not find an answer to this question.
Goal: to generate a release build for iOS on server machine from the project folders that I used on my Linux machine to make release build for Android.
Well, to answer my own question, IntelliJ seems to find the correct flutter path on its own somehow. It give me an error message after build command, but then continues using correct flutter path. I am pretty sure that I never told the program where to find flutter.

Visual Studio 2015 hangs on deploying cordova application

I'm trying to build a blank cordova application into my iPad Air 2 with Visual Studio 2015 Enterprise edition as i've already done it with success with the release candidate version.
I've got node.js v 4.2.2 on both machines since version 5.2.0 was hanging the build indefinitely, i've also got latest version of iTunes (12.3.1) as well as iOS 9.2 on the mobile device.
I've got the remote MAC set up and everything works fine for the building part, infact i've checked and the .ipa file is there at the end of the build into the folder ...\Documents\Visual Studio 2015\Projects\BlankCordovaApp1\BlankCordovaApp1\bin\iOS\Debug and if i launch that it will correctly install into iTunes and the iPad itself.
The problem is that the build action with Configuration "iOS" and "Local Device" with the iPad connected to the windows 7 PC will hang indefinitely after copying back said .ipa file after writing this line into the Build Output:
2>------ Deploy started: Project: BlankCordovaApp1, Configuration: Debug iOS ------
No matter how much time i wait it wont start the debug session even if i authorized the pc onto the iPad and have my web Inspector turned on onto the safari options. At this point i have to interrupt the build to be able to work again.
What really gets me is that if i connect the iPad to the MAC machine and build with "Remote Device" option the build works fine and i can debug remotely from my windows pc, unfortunately working like that isn't an option since the Apple machine isn't in the same room of my developing machine.
Any insight about this issue would be really appreciate, thanks in advance.
You are using a recent version of node and thus will also need to use a recent version of Cordova.
Specifically, you need to use Cordova 5.3.3 to be able to use Node.js 4.x.x+. The hang you are experiencing is exactly why. It's an incompatibility with a down stream node module and Node 4.x.x. You can downgrade to Node 0.12.x or upgrade your Cordova project to 5.3.3.
http://cordova.apache.org/news/2015/09/22/tools-release.html
Note that Node 5.x.x is only supported in Cordova 5.4.1.
This should be addressed in the latest VS Tools for Cordova Update 6. Deploying to local device is now available.
Take a look at http://microsoft.github.io/vstacoblog/2016/02/04/announcing-update-6.html.

BlackBerry 6 and 7 application development failure

I have successfully setup all the IBM mobile first environment. I then created a mobile app named "BB6APP" with the BlackBerry 6/7 environment.
When trying to run the application build in Studio, I get the following error:
Failed to deploy application 'BB6APP' to MobileFirst Server:
FWLSE3051E: Invalid payload. See additional messages for details.
image of error
Using IBM MobileFirst Platform Studio 7.0.0.00-20151001-1558 I am unable to confirm this. I successfully created a new project, add an application and to the application added the BlackBerry 6/7 environment.
Note that this environment is deprecated - meaning that most likely in the next MobileFirst Platform Foundation release it will be removed.
Try to start over in a new Eclipse workspace
Try to delete the wlBuildResources folder from your TMP directory
Make sure the location you have your Eclipse workspace has full permissions for your user.

IBM Worklight 6.1 - How to open the iOS app in Xcode?

I have installed Worklight 6.1.0 in Eclipse Kepler in OS X 10.9.2.
I wish to create a hybrid application in iPhone environment. Generally, creating an iPhone mobile application requires Xcode and iOS SDK. I don't know how to link Xcode with worklight. Any tutorials or documentation?
Sure, plenty of tutorials, see: IBM Worklight Getting Started training modules.
The steps are:
Create new Worklight project
Add an application
Add the iPhone and/or iPad environment
You can now:
Right-click on the iPhone folder and select Run As > Xcode project
This will build and deploy the app to the Worklight Server + open the generated iOS project in Xcode
Or:
Right-click on the app folder and select Run As > Run on Worklight Development Server
This will build and deploy the app to the Worklight Server.
Navigate to the iphone\package folder and copy from it the generated, zipped, Xcode project
You can now paste it somewhere, like on the Desktop, extract it and double-click the .xcodeproj file to open the project in Xcode
You do not need to link any SDKs. Worklight does most of the job for you. It generates a fully functioning Xcode project containing your web app within, hence a Worklight Hybrid app.
The above does not replace reading the training material!

Integrating Crashlytics build script with Xamarin.iOS

I am trying to integrate Crashlytics with Xamarin.iOS. I have successfully added a binding and started the logger with my API key. I'm able to crash the app but no reports are landing on the web dashboard. When adding Crashlytics to an xcode project it prompts you to add a build phase task to run a script (Which I believe uploads your symbol files to their website).
./Crashlytics.framework/run APIKEY
After creating a binding of the framework for Xamarin this doesn't work as expected... I haven't added a build task in Xamarain Studio but running the command from the terminal yeilds:
MacBook-Pro:Crashlytics.framework user$ ./run APIKEY
2013-09-04 16:10:49.941 run[9238:707] Crashlytics.framework/run 1.2.3
2013-09-04 16:10:49.943 run[9238:707]
Crashlytics: Failed to Detect Build Environment
BUILT_PRODUCTS_DIR value not found in environment
So finally the question:
How do you integrate this build script into the Xamarin environment? Do I need to copy more assets around to trick the run command into thinking all is well?
Latest versions of Xamarin Studio support Crashlytics out of the box:
We had been using Crashlytics with our Xamarin project. But, it seems with Xamarin.iOS 8.6 and/or Xamarin Studio 5.7 it is no longer supported, and the Crashlytics APIs have changed.
Here are the steps I used.
In the Xamarin Studio , go to the touch container and add the Crashlytics API key in the Build -> Crash reporting section. Build and run that app. The evidence suggests that is enough to get data sent to Crashlytics. I saw that it knew about older versions of the app I had built and ran weeks ago with the API key already in.
Go to Xcode and create a new project with the same name as the Xamarin project, com.{company}.{appname}. (You probably need to have that profile downloaded.) I did it in Swift by the way with no issues.
Go to crashlytics.com com and go to settings -> Apps (or https://www.crashlytics.com/onboard)
You will get an app to download and run. The app walks through the steps of adding
A build phase run script
Code to the application main Crashlytics.startWithAPIKey(“nnnn”)
Run your Xcode version of the app
The Crashlytics web page popped up immediately.

Resources