I just finished my first black berry app and I'm assuming I must codesign it before sub.
On my eclipse there is a option to install new signature keys. How do I get a signature key? I could not find no options in eclipse to then sign the project.
You will be able to run your application in the simulator without signing it, but in order to run it on a real device you will indeed have to get signing keys and sign your application. In order to get code signing keys, you will have to fill out a registration form here. BlackBerry recently simplified this process, but there are still several steps to it and once you fill out that application you'll still need to wait for RIM to give you your keys and further instructions. Once you have your keys, you can use the eclipse option to install them and use them when building your application, so that you can deploy it to a real device (this option is available in the preferences for the blackberry plugin).
Related
I have changed some settings in xcode to be able to create apps without signed code. But when I put the app on my iPhone 6, it crashes on startup. I already installed Appsync, but that doesn't work. So I read about ldid. I've installed ldid through cydia and connected with ssh. But I get this error:
./minimal/mapping.h(54): _assert(false); errno=21
What can I do?
Apps need to be signed... Either by a developer identity or by the MAS or dosas identity.
What happens when you run it through the debugger? Where exactly dos the debugger get halted? Are there any symbols for us to see? i.e. when it crashes, download the crash logs via Xcode and have a look at them. Usually, if an app gets buggy, re-compile it WITHOUT stripping the symbols (in build settings), then the crash log will be easier to read.
You get the common name to sign your app by going into keychain access, double clicking on the certificate you want (I suggest the developer ID one)...
One thing to note though.. I you have any embedded bundles, frameworks or XPC services, you should add --deep to the end of the coding command, so
instead of: codesign --force -s "Developer ID Application: Your Certificate Common Name" /path/to/your/Application.app
you would use:
codesign --force --deep -s "Developer ID Application: Your Certificate Common Name" /path/to/your/Application.app
Which, in short, recursively signs
So, I'm trying to make a whole script that would make most of the steps of running an app built from phonegapp almost automatically.
I'm actually trying to automate the process of adding certificates and provisioning profile. But I'm not even sure if it is possible or not.
I'm looking for answers using the phonegapcommands in terminal if it is possible. If not, I'm wondering which files I would have to modify (for example in Xcode ?) in order to add these.
The point really is to run one script from the terminal, and both the certificate and the provisioning profile would be added so that the user can run on a device without having to manage anything else.
Thanks.
I am stuck in this problem for two days now..
What I need to do is make a small iPad application that when the user launches, sends the iPad in kiosk mode/guided mode. I am required to use MDM for this (I am using Meraki for MDM https://meraki.cisco.com/products/systems-manager ).
However, I am not able to put the little pieces of information together to make one complete solution.
I know the following things:
I need to make my device "Supervised", which I have already done using the Apple Configurator. But since then, when I connect the device to my mac, XCode does not show it as an option on which I can run my iOS application. Now it just shows the installed iOS simulators. I don't know why this has happened..!!
I have created a .mobileconfig using meraki, and it is successfully installed on my iPad. However, whenever I try to alter the created .mobileconfig file in order to introduce some more payloads, my iPad refuses to install it saying that "The profile cannot be installed due to an unknown error". There is no use of installing the meraki-generated .mobileconfig file as-is because I have to include App Lock payload in it in order to provide guided access too. However, this payload option is not available when i am using the meraki. So in any case, I need to alter the available meraki mobileconfig file.
In case i create my own .mobileconfig file and include the required payloads, How do I place it on MDM so that it can install the configuration file on the device when required
I am totally confused..!! Please help me out..!!
There are many parts to your question and I'm not 100% clear on what the overall objective is, but based on what I understand here are your questions and my answers:
I need to make my device "Supervised", which I have already done using the Apple Configurator. But since then, when I connect the device to my mac, XCode does not show it as an option on which I can run my iOS application. Now it just shows the installed iOS simulators. I don't know why this has happened..!!
This is because when you mark a device as supervised it will get wiped out and any profiles installed will be deleted. For Xcode to be able to run an app on a device it needs to have the development profile installed. If you open Xcode->Window->Organizer after your device is connected to your Mac, it has a button named "Use for development", just press that button and XCode will be able to run your app on this device.
I have created a .mobileconfig using meraki, and it is successfully installed on my iPad. However, whenever I try to alter the created .mobileconfig file in order to introduce some more payloads, my iPad refuses to install it saying that "The profile cannot be installed due to an unknown error". There is no use of installing the meraki-generated .mobileconfig file as-is because I have to include App Lock payload in it in order to provide guided access too. However, this payload option is not available when i am using the meraki. So in any case, I need to alter the available meraki mobileconfig file.
If you go to the Meraki home page and navigate to MDM->Settings (make sure your profile is selected in the dropdown), make sure enforce restrictions is selected, you should see a section named "ios Supervised Restrictions". In this section there is a setting called "Single App Mode". You should enable that setting and enter app name or bundle Id there. Note, the moment this configuration (.mobileconfig) is applied the iPad will launch your app in single app mode and you will not be able to do anything else with the device other than use your app.
In case i create my own .mobileconfig file and include the required payloads, How do I place it on MDM so that it can install the configuration file on the device when required
You can upload your own .mobileconfig in the Meraki webpage ->MDM->Profiles->Add new->new mobile profile, in the resulting page there's a drop down for Configuration which has an option to "Upload a custom iOS/OSX configuration profile".
I am using Windows7 and Marmalade 5.1.10. I tried to create deployment package for iOS but it is giving error of certificate not found at particular location. I checked in that location and there is one .cer file presents. I installed that certificate under trusted root authorities store. Still I am getting same error. Then I copied that and renamed .cer file to AppleWWDRCA.cer file as per given in error message. After that it is giving me error:
"Signing error: Can't find your developer signing private key at C:\Marmalade\5.1\s3e\deploy\plugins\iphone\certificates\developer_identity.key".
Let me know how to resolve this issue.
Note that I dont have Apple ID created for iOS developper.
Please share your input on this.
What if I just want to test with iPhone simuulator? I tried following:
I created my simple demo application. Then I created package for iPhone on my Windows PC. While creating package I selected option "Do Not Sign". I got success with that. Then I transfered .app to my MacMini. I copied .app to XCode in appropriate folder of Application. Then I started iPhone Simulator and I can see my application. But when I click on that it is not opening.
So now let me know what can be issue. Is it due to certificate issue or due to selected option "Do Not Sign"?
Please treat this as little bit urgent.
Thank you very much in advance for your inputs.
Regards,
Premal Panchal
There is a detailed description of how to create the necessary certificate files in the Marmalade Documentation help file, installed as part of the SDK. You can find it here:-
Marmalade->Platform Guides->iOS Guide (for iPhone, iPad, iPod)->iOS Requirements and Setup Guide
When you say you don't have an Apple ID created for iOS Developer do you mean you haven't signed up to the iOS Developer Program? If so, then you won't be able to generate a signed build at all.
Regarding testing with the iPhone simulator, I don't think that this is possible. If it is possible you will probably need to have a signed app. I believe the reason XCode can run in the iPhone Simulator even without valid developer certificates is that it is doing it's own signing of the generated app behind the scenes.
Before Xcode 4.3, I used this method to submit applications to the app store:
-- Compile the application with the appropriate signing certificate which was configured inside the application's build settings
-- Distribute the application into the app store or clients using Xcode's built in submission process. When I was asked to select the signing certificate with which to sign the app, I always selected "Don't Resign".
However, the "Don't Resign" option does not exist in Xcode 4.3. Therefore, my application is resigned, and I always end up with an error saying that the code sign verification failed.
Is there any way around this problem?
I have found out that the compilation errors about code signing are due to a bug in Xcode 4.3. As many other have pointed out in Apple's developer forums, and myself, there are many cases where Xcode will complain about code signing your application if your application contains an image bundle! So, I remove the bundle with the images, and re-imported the images as separate files. I was able to compile the application for Ad Hoc this way, whereas it wouldn't compile with the bundle.
Also, as far as "Don't Resign" is concerned, I noticed that even if the application is already code signed in another step, Xcode 4.3 became smart enough to not re-sign the application with the same certificate, even if it appears to not give you the chance to not to! That's what I have verified with Ad Hoc builds. I will soon try that with production builds.
So, Xcode 4.3 became smarter in one way, and dumber into the other. Apple needs to fix this problem with the bundles, SOON!
Yes, there is a way. Before it used to default to whatever code sign it could find and auto-embed it into your apps. Right now its bugged.
To solve it, you would have to go through the steps of obtaining a new certificate and its private/public key. 3 step process:
Make sure you completely delete your old certs and keys by going to Applications > Utilities > Keychain Access. Then Deleting the certificates and private keys associated with your Developer account.
After deleting all that info head Here to generate a new certificate for your app. Download and import to your login keychain
3.In Xcode open your project. Head to your root project folder > targets > build settings and attach the new correct certificates to code sign your app correctly.
If you are unsure about the code-signing process. Either go here or go to the dev provisioning profile under distribution you have some (REALLY OUTDATED) examples to point your way