How to convert Objective C project to Windows Mobile - ios

I am working on hybrid app majorly built on HTML5, CSS3, javascript and wrapped over PhoneGap to create apk, ipa and xap/appx file. With the latest Microsoft announcements, its possible to convert your iOS project to Windows project. Can anyone give a small tour of how to convert an existing iOS project to Windows mobile project?

You need to follow the steps given below:
You need to custom install Visual Studio 2015 with UWP (Universal Windows Platform) on Windows 10 system.
If you have Windows 7 or 8 machine and not Windows 10, you will need a Windows 10 mobile device to run the application.
Download the WinObjC SDK from here. You can either directly download the SDK from the link or download the source code and create the SDK by following the steps given on this link.
Now keep your iOS application code (developed using Objective C) ready and follow the steps under "Using vsimporter" heading at the same link.
Before building the application, right-click the solution and set it as a startup project.
Build the application and it will run on your Windows 10 device.

Complementing the answer already provided, to convert a Objective-C project to Windows is required to use the tool vsimporter.
This tool is present in open source bridge Project from Microsoft GitHub (https://github.com/Microsoft/WinObjC).
***Check the Readme file before to start
Using vsimporter
The vsimporter tool enables you to import your Xcode project into a new Visual Studio Universal Windows Platform (UWP) app project with Objective-C support.
To use the tool:
Download the prebuilt SDK from here and extract the files to a directory (for example c:\winobjc)
From a command prompt, navigate to the directory containing your Xcode project, for example c:\winobjc\samples\WOCCatalog
At the command prompt, run vsimporter.exe
c:\winobjc\samples\WOCCatalog> ..\..\bin\vsimporter.exe
A Visual Studio solution file is created in your current directory, double click this file to open your project in Visual Studio
Press Ctrl-F5 to build your app and run it on your PC.
You can also pass the -i option at the command line to run the vsimporter tool in interactive mode. Interactive mode lets you see and select the specific configurations of the Xcode project that you wish to import. By default vsimporter creates a Visual Studio solution that targets Windows 10. If you'd like to target Windows 8.1 (Phone or Store), use the -format option and specify one of winstore8.1, winphone8.1, or winstore10 (winstore10 is the default).
For help running vsimporter, use the -help option at the command line to see the full set of supported options.
To see the complete tutorial, please visit this link

Related

APK fails to be installed on any device

I'm new in the Xamarin Development world so I installed Visual Studio 2017 with all the needed cross compiler features.
After downloading and updating the SDKs for Android API 23, 24, 25 and 26 and some corresponding emulator images I got the emulators starting up.
I created a base Xamarin Android App within VS, compiled and deployed it to the simulator.
By deploying/installing the generated APK to the simulator I get the following error:
Failure [INSTALL_FAILED_INVALID_APK: Package couldn't be installed in /data/app/BlankAndroid.BlankAndroid-1: Package /data/app/BlankAndroid.BlankAndroid-1/base.apk code is missing]
It doesn't matter which SDK I choose as “Target Framework” or which Simulator I choose (Android 6, Android 7 or 7.1). The result is the same: The apk is not installed, but the “Mono Shared Runtime” are present and will be updated.
I figured out that the created apk file does not contain a file “classes.dex” or any oder dex files just some ressources. A file “classes.zip” in the directory “obj\Debug\android\bin\classes” with the generated java classes out of my C# is present. These files should be compiled with the DEX-Compiler to the classes.dex file, when I understood correctly.
Even other sample projects from the Internet have exactly the same result.
What do I do wrong?
The problem got solved by fresh installing the Android SDK and all related components. It seemed to have a SDK missmatch between an old Google Android SDK and the new installed Xamarin Android SDK.
I faced the same problem and tried many solutions from the search in web but this one to an extent solved that deploy failure issue.
In the emulator, open settings -> Apps -> Uninstall your app if it is listed
Deploy the app from visual studio again.
This solved the problem that said base.apk is missing.
Try setting your project back to the current recommended defaults. Remove all of the following properties from the .csproj file:
AndroidEnableMultiDex
AndroidDexGenerator
AndroidLinkTool
AndroidDexTool
This will let Xamarin.Android pick the current latest default values, this apply for Visual Studio for Mac and VS 2017-2019

Developing Unity game on Windows for iOS devices

My unity application is developed for iOS devices, but for some reason at this moment I have only Windows PC.
I searched around and found similar information, but not clear for what I want.
My query is
I will do development of the game in Windows PC using C#.
Then will build and deploy to iOS device using MAC.
Is that possible? I like to make sure.
I have made several Unity3D projects for iOS using a Windows.
When installing Unity, don't forget to check "iOS deployment" and your Unity (on Windows) will be able to build an Xcode project.
Then, just transfer this Xcode project on a Mac with Xcode installed and you will be able to compile the project in order to be run on your iOS device.
Note : I just have to run chmod 777 MapFileParser.sh on the Mac folder containing the Xcode project before compiling with Xcode.
You can always use Unity Cloud to build you games. Their server will build it either from your own repo (git, svn, etc) or you can use their Collaborate feature by going into the unity editor -> services -> collaborate on.
Before getting to use Unity Cloud to build for iOS, you will need to generate your certificates just as you do when building using XCode. On the config page you can choose the version of unity you want the build to use, the version of xcode and if you want Unity to build your game on every push ( auto-build).
As far as I know when building for ios the ipa will have a ridiculous size. If you encounter this problem please refer to the following link: how to disable bitecode
Even though Unity allows us to use their system to build for any platform, in order to upload your *.ipa to app store you will need to do it through application loader.

No IPA output for Cordova build in Visual Studio

I'm developing a mobile app with Visual Studio Tools for Apache Cordova CTP 3.1 in VS 2013. I have configured everything according to the MSDN specifications here Install Tools to Build for iOS. I am able to build the app and run the remote simulator (as described here Run Your Apache Cordova App on iOS).
My problem is there is no output from the build back on the Windows machine where I have Visual Studio. More than that, there is no .ipa file created on the Mac either. I can find the build at /Users//remote-builds/builds/ but that's all. I can open the project in XCode for instance, but that's not what I want.
I want the final package file that I can install on test devices and eventually publish to the store. How do I get that?
Also my goal is to setup a TFS build definition so I can get a build each time I commit changes. I need to get that output file to the drop location of my build.
From within VS, you will have to choose "Remote Device" or "Local Device" as your debug target and then "build" to get an IPA back.
Also, refer to TFS build does not copy Cordova project output for instructions on how to setup TFS for CI workflow.

How do I add sdk tools manually to android studio

I downloaded android studio without sdk tools, but I have them already from the eclipse IDE
I want to manually place them where they should be, as when I open android studio it starts downloading the sdk tools automatically, but my data pack is running out, I can't download it!.
Where should I place the sdk tools folder in the android studio files, so that it doesn't attempt to install the sdk tools automatically and just launch the studio directly.
you can setup in first setting.. first time you opened android studio..
android studio will ask which sdk you will use
I reinstalled the software and added the sdk in install configuration process

How to solve "invalid project" for webworks for blackberry 10

i have installed webworks for blackberry 10 in widows 8, but i am not able to open up projects from the web tool. i am always getting the "invalid project" error. Any one have an idea on how to solve this
The format of your project must be compatible with the SDK. If you created an old project using version 1.0 of the WebWorks SDK for BB10, then it is not compatible. Version 2.0 introduced major changes to align with Cordova, which made changes to how project folders are structured.
You can fix this by first creating a default project using the new format, copying in your existing assets, and then open that project using the GUI:
Ensure the BlackBerry 10 WebWorks SDK 2.0 is correctly installed.
Open a command prompt (windows) or terminal (mac) and run the following command:
webworks create <your source folder>\YourApp
Replace the default YourApp\www folder with the \www folder from your existing project
Use the Web tool to open the YourApp project
Hope that helps.

Resources