Monday, January 6, 2014

Solving Application ID Verification Failed Error - iOS

This discussion is to share my knowledge on a very common issue which is not much discussed about. I would consider this to be an article than a discussion.
While working on iOS applications using AIR (Flash Builder 4.6 and above), there were quite a few times when I encountered this error.

How to diagnose this error:
1) If building on Flash Builder(debug mode with iOS device connected), it will pop-up as a dialog box saying ld64 error and title being Application ID Verrification Failed.
2) If you are successful in building the app, and try to install it using iTunes, the app wont install on the device and throw some error: "Application Installation Failed"

What Fails?
PART I:

As per my research on this, I usually got this error when the Moile Provisioning Profile did not match the developer or distribution personal Information(p12) files.
in other words .p12 file not matching .mpp file.

Usually it very important for newbies(like me) to know:
1) Always use the iPhone Developer/Distribution p12 even when you are using APNS.


PART II:
The second thing you would like to check is the WhateverAppName-app.xml file. The entitlements need to change when you use APNS in developer mode as compared to distribution mode.

I am writing the code down here, but you can directly copy and paste from the respective Mobile Provision File(Developer/Distribution).

For Developer:



<key>application-identifier</key>
     <string>XXXXXXXXXX.com.companyName.appName</string>
<key>aps-environment</key>
<string>development</string>
<key>get-task-allow</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>XXXXXXXXXX.com.companyName.appName</string>
</array>


For Distribution change the :
development to production
true to false
and last <string> </string> tag to :
<string>XXXXXXXXXX.*</string>

Thats where I always got an error with Application ID. It just means the code signing went wrong somewhere.

I shall be updating this whenever I come across any new findings related to this issue.
Please feel free to add in your suggestions.

Cheers!
Videep

Wednesday, October 2, 2013

Exporting OBJ to JSON

Today is my first post, so I will start by introducing a windows program which converts OBJ files exported from Maya/Sketchup/3ds Max (tried till now) to a JSON format supported by ThreeJS(version 3.1). So for those who have been using the super famous python script (made in 2.6) and are having problems in understanding how to use it, etc… I would like to introduce a simple way. Following image shows you the beta release of the exporter/converter.
Converter
So lets get started.
First download the files in the complete repository here:
This contains the converter, its image and do not forget to download the Newtonsoft files. Once they are downloaded, extract them in a folder.
Do keep the converter and dll file in the same folder of the converter to work.
Next, you can open the exporter and click on the “Get File” button to select the file you want to convert. I have provided an obj file of a cone object exported from 3ds Max. You can try using the same.
Once you select the file, the statistics appear in the table below the buttons.
You can then choose to save. The save button will create a new file from where the source file was picked up and add “_Converted.js” as a suffix. This is the file you can use with ThreeJS and export data to the web.
The converter is still under progress. Please do post in your crits/comments/issues as it shall help in the development process of the script.
Cheers,
theMaxscriptGuy