Name: x-files
Owner: Jewelbots
Description: Archive & Export Xcode Projects
Created: 2016-01-22 22:10:04.0
Updated: 2016-01-22 22:39:08.0
Pushed: 2016-01-27 00:04:33.0
Homepage: null
Size: 15
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Archive & Export Xcode Projects With Poise and Grace
This module requires a modern version of Node.js (>=4.x).
As one may expect, you will also need Xcode installed and available via $PATH
.
The following example creates an .ipa
file from an existing Xcode project (.xcodeproj
file).
This .ipa
file can then be deployed to a device or distributed however you like.
xFiles = require('x-files');
app = new xFiles(
'FancyApp', // Xcode Scheme
'/Users/FancyPerson/FancyApp.xcodeproj' // Xcode Project
ole.log('> Creating archive...');
createArchive('./test').then((file) => {
console.log(`> Archive created. Exporting...`);
app.exportArchive(file, './test.ipa').then((ipa) => {
console.log(`Done. We created ${ipa}!`);
});
});
error) => {
console.log(`- Archive failed: ${error}`);
When using this library in conjunction with something like ios-deploy
, ensure that you have removed any copies of the app that may have been previously installed via iTunes. Any copies left in iTunes will silently overwrite the version generated with x-files and installed with any tool such as ios-deploy
, libimobiledevice
, or similar.
Specifying which provisioning profile to use is not yet supported. This will be fixed.