3.0.1 • Published 2 months ago

xcode v3.0.1

Weekly downloads
1,077,332
License
Apache-2.0
Repository
github
Last release
2 months ago

cordova-node-xcode

NPM

Node CI

Parser utility for xcodeproj project files

Allows you to edit xcodeproject files and write them back out.

based on donated code from alunny / node-xcode

Example

// API is a bit wonky right now
var xcode = require('xcode'),
    fs = require('fs'),
    projectPath = 'myproject.xcodeproj/project.pbxproj',
    myProj = xcode.project(projectPath);

// parsing is async, in a different process
myProj.parse(function (err) {
    myProj.addHeaderFile('foo.h');
    myProj.addSourceFile('foo.m');
    myProj.addFramework('FooKit.framework');
   
    fs.writeFileSync(projectPath, myProj.writeSync());
    console.log('new project written');
});

Working on the parser

If there's a problem parsing, you will want to edit the grammar under lib/parser/pbxproj.pegjs. You can test it online with the PEGjs online thingy at https://pegjs.org/online - I have had some mixed results though.

Tests under the test/parser directory will compile the parser from the grammar. Other tests will use the prebuilt parser (lib/parser/pbxproj.js).

To rebuild the parser js file after editing the grammar, run:

npm run pegjs

(and be sure to restore the Apache license notice in lib/parser/pbxproj.js before committing)

License

Apache V2

fork-appcenter-cli42-pro-react-native-code-pushreact-native-bluetooth2killi8n-react-native-fast-imagereact-native-code-push-ptmcordova-plugin-allianz-teleconsultationrn-send-sms@mcesystems/mce-sdk-clicordova-plugin-openwithtalisman-cordova-plugin-firebasereact-native-template-rfbaseairscanairscan-example@ivanmoskalev/barnbugsnag-react-native-clireact-native-esc-pos-sahaab@seabird22/cordova-plugin-firebasex@borisovart/atol-kkt-module@jimmychang/react-native-code-pushwi-react-native-code-pushdeneme323112test-make-cli@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-proximity-sdkreact-native-covid-sdkreact-native-thanh-toast-libraryappletools-libcordova-plugin-braintree-swift@ionic/e2e@thanhnguyen14797/react-native-thanh-toast-librarytrustwise-react-nativecarlhopf-cordova-libreact-native-printer-brothersrn-pdf-reader-offlinezbayapp-nodejs-mobile-react-nativegrouplinksdk-expo-pluginreact-native-shekhar-bridge-testgrouplink-sdk-expo-plugininnomobile-branch-cordova-sdkwilscanner@oiti/documentoscopy-react-nativern-0.45-fork-oreoreact-native-slider-kf@ekx/cli@infinitebrahmanuniverse/nolb-xcjotive-cli@everything-registry/sub-chunk-3177smartech-cordovatarifatanngotcg.cordova.openwithtdboxtest-leonatest-library-123weexpackwonderpush-cordova-sdkweexpack-iosweexpack-libweextoolweextoolsxctestwdxcode-nodexclixface-librunnercamp-react-nativern-tm-notifyrn-use-modal-hookrn-codepushrn-vk-loginrnfrst-xcodern-session-multiplier-demorn-scaffoldrnttlockrn-sqliternpm-plugin-apphubrnpm-plugin-foundationrnpm-plugin-linkrnpm-plugin-upgradesharingcomponent2share-extension-expo-pluginscreens-cliremofficiisrn-adyen-dropinrn-ln-modifyrn-my-libraryrn-packagerrn-fontsreact-native-wtfreact-native-vanillareact-native-variationstestnsfiretest_kom1test_versiontestnpm_lmnthecolvinco_react-native-payments-clivision-camera-plugin-scan-facesvcremote-libxcode-parser@bluejeans/react-native-code-push
3.0.2-nightly

2 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.0

5 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.0

7 years ago

0.9.3

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.8.9

8 years ago

0.8.8

9 years ago

0.8.7

9 years ago

0.8.5

9 years ago

0.8.4

9 years ago

0.8.3

9 years ago

0.8.2

9 years ago

0.8.1

9 years ago

0.8.0

9 years ago

0.7.9

9 years ago

0.7.2

9 years ago

0.7.0

10 years ago

0.6.7

10 years ago

0.6.6

11 years ago

0.6.5

11 years ago

0.6.4

11 years ago

0.6.3

11 years ago

0.6.2

11 years ago

0.6.1

11 years ago

0.6.0

12 years ago

0.5.5

12 years ago

0.5.4

12 years ago

0.5.3

12 years ago

0.5.2

12 years ago

0.5.1

12 years ago

0.5.0

12 years ago

0.4.1

12 years ago

0.4.0

12 years ago

0.3.5

12 years ago

0.3.4

13 years ago

0.3.3

13 years ago

0.3.2

13 years ago

0.3.1

13 years ago

0.3.0

13 years ago

0.2.1

13 years ago

0.2.0

13 years ago

0.1.0

13 years ago

0.0.0

13 years ago