I am trying to build my Cordova project for an iOS. I have borrowed a mac and an iphone in order to do this; meaning I am very new to everything apple-related.
From what I understand: in order to build anything for iOS, I need some sort of apple developer-account. (I believe the mac I am using has one, not quite sure.)
When I try to run the command: cordova run ios I get the following error:
Check dependencies
Code Signing Error: No profiles for 'io.cordova.hellocordova' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'io.cordova.hellocordova'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
I don't know what any of the above means, or how to solve it. I believe I have to use xcode to somehow automatically created a build.json file (not sure), but I don't know how to open my cordova project in xcode.
I have been using Sublime to edit my cordova project files, and the terminal to use the cordova cli. I am running xcode 9.2
From what I understand: in order to build anything for iOS, I need some sort of apple developer-account. (I believe the mac I am using has one, not quite sure.)
If that is true, then you can try the following:
cordova build ios
open platforms/ios/<my-app-name>.xcworkspace
This will open the app in Xcode. Click on the icon (left hand side, above the directory structure view) "General" and check "Automatically manage signing". Try to run the app in Xcode.
Check this website for reference (and a picture of where to click in Xcode): http://cordova.apache.org/docs/en/7.x/guide/platforms/ios/index.html
As mentioned by #Dev_Tandel, you need to have a apple dev acct to run your app in a device. Refer link to get more info: https://developer.apple.com/support/certificates/
Related
Currently I'm using Ionic Framework and trying to build an iOS mobile App. In order do that I did the following steps:
To add the platform,
$ ionic cordova platform add android
2.To build the app
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
After it successfully generated .xcodeproject file, I imported the file into Xcode.
After importing the project, cleaned the project folder in xcode itself.
Then I added the Apple ID account to my Xcode.
After adding the account I'm trying to archive the project, in order to do that I checked the following URL's
Official Documentation to generate the IOS app
Stackoverflow answer to .ipa file.
In the Archiving process I'm getting the following error:
error: Your development team, does not support the Push Notifications capability. (in target 'folder')
I tried to rectify it in the following way:
DISABLE_PUSH_NOTIFICATIONS=1
in the preprocessor macros. Unfortunately it didn't solve my problem.
I don't have any Apple developer ID
How to solve this problem, in order to archive the project? Could any one help me in this regard?
I tried all the solutions which are available solutions but they didn't solve any answer. I am stuck since the past 2 days.
Are you using any plugins that require push notifications?
See ios push notification development on free apple account.
It is not possible to use push notifications without a paid Apple Developer ID.
If not,
Try removing and adding the ios platform again.
I'm sure it used to be possible to do this but I don't seem to be able to run the Xcode project generated by Titanium in Xcode. The app installs in the simulator and starts but immediately stops with the following runtime error:
Could not find the file app.js
I'm running Xcode 7.2.1 with appc cli 5.1.0 / ti CLI 5.0.5. The app is built with 5.1.2.GA.
Running the app in Xcode would provided access to instruments and perhaps better insight in native level crashes etc.
What you are trying to do isn't officially supported, but it is possible.
First, do a clean build of your Titanium app from Appcelerator Studio (or the command line). Then open the Xcode project from the build/iphone directory.
Next, open Xcode's preferences and go to the "Locations" tab. Click the "Advanced" button under the "Derived Data" field. Set the build location to "Custom" and "Relative to Workspace". Lastly set the "Products" location to build/Products and the "Intermediates" location to build/Intermediates. Click "Done" and close the preferences dialog. You only need to do this once.
You can now build your app from Xcode, but there are a few gotchas:
You cannot clean the Xcode project. You'll nuke all your app resources.
You can only build for the same target as you built the Titanium app for in Appcelerator Studio. In other words, you will probably have issues building the Titanium app for iOS simulator, then try building it for device from Xcode. Don't do this.
Again, this is currently not supported. I'm working on greatly improving this developer experience, but it's going to take a while. In the meantime, I hope the above helps.
I recently upgraded my PhoneGap app from 2.4.0 to 3.4.0. To do this I had to create a new project using NodeJS, then copy all the www files and resources into the new project. I added a new ios platform. It compiles and runs in xcode 5.1. The simulator works too.
Now I want to submit this to the app store as an update to my previous version. The problem is the "Product > Archive" menu in xcode is disabled.
Has anybody who can give me some direction been through this process? Or direct me to where I can get some help?
======
UPDATE: I found that I the target device must be set to iOS Device in order to archive a project. Now Archive is enabled. I run archive, but no archive is listed in the Organizer.
Still looking for help.
Make sure you connect your device first. You cannot archive your project without a device.
This turns out to be a simple oddity with Xcode. If you have a simulator selected you cannot archive. Choose iOS Device and then you can archive, with or without an actual physical device connected.
When trying to run any project in an Xcode Developer Preview (Xcode 5 DP6 in my case), the app is not started and the following error message appears:
Could not launch "" - No such file or directory (/private/var/mobile/Applications/741F0826-E354-4E13-9CC3-0FB3A66E8798/.app)
The solution was very simple in my case, in Terminal just execute
sudo xcode-select -switch /Applications/Xcode5-DP6.app/Contents/Developer/
with the path for the currently used Xcode Developer Preview.
Do not forget to switch back when developing on the previous stable Xcode version again - especially when archiving for AppStore submit.
I faced the same problem, I did following things to sort out my problem:-
1) Changed "don't sign" and "iPhone distribution" to my valid developer provisioning profile in Xcode's build setting.
2) Quit Xcode.
3) Uninstalled App from device.
4) Unplugged device.
5) Plugged in device.
6) Ran Xcode
7) Built and Ran App.
Thats it :)
This has a very simple solution (works on every Xcode so it's not NDA thing):
Kill all Xcode running
Delete the app from device (if there is any), Restart your device and disconnect it (if was connected).
Open organiser in Xcode and check that device is connected and used for development, if not select "use for development"). Device should be on and connected.
Check the signatures are good.
Build& run.
This should work. Let me know if it doesn't.
I worked on this issue for about an hour, trying everything on every post I could find on SO, but nothing worked. I then compared my project settings to another project that did run on iOS and found the issue was MACOSX_DEPLOYMENT_TARGET was set to 10.7 on the iOS build. I share the same project for my iOS and OSX targets for each app I make, so it's easy to see how this happened. I deleted the setting at the project level, added it to the target level for each OSX target, stripped and built the iOS target and it finally ran! Not to say the other solutions are wrong here, there just could be multiple causes.
I have developed an iOS app in Titanium Studio (SDK 2.1.3.GA). Now, I want to publish on the Apple App store.
I tried, but it gave me the error add armv6. I added it in the file info.plist, but still I am getting that error.
Could any one give me step by step guide to upload an iOS app from Titanium to the Apple App store?
Also, how can I set the app icon for both iPhone and iPad in Titanium?
Yes I had the same problem I did the following step after banging my head for 5 hours.
Start the project in simulator it will create the build folder within your project/
Go to the build folder->iphone, find the xcode project.
Open up this project in xcode. Select the main project and goto info tab.
Set the minimum ios development target to 5.0 (you can also select 4.3 but don't select 4)
Go to the build Settings tab. Remove all the architectures.
Now add two targets one by one. 1. armv6 2. armv7
Repeat this step in Valid architectures in build settings and select appropriate distribution provisioning profile.
Now clean the project. build archive and enjoy :)
Here is the official doc of Titanium, very clear for the distribution steps.
Distribution iOS apps