publish/scripts/postinstall.js
function writePodFile(result) {
    if (!fs.existsSync(directories.ios)) {
        fs.mkdirSync(directories.ios);
    }
    try {
        fs.writeFileSync(directories.ios + '/Podfile',
            `use_frameworks!
pod 'Fabric', '${FABRIC_IOS_FABRIC}'
pod 'Crashlytics', '${FABRIC_IOS_CRASHLYTICS}'
# Crashlytics works best without bitcode
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] = "NO"
        end
    end
end
`);
        console.log('Successfully created iOS (Pod) file.');
    } catch (e) {
        console.log('Failed to create iOS (Pod) file.');
        console.log(e);
        throw e;
    }
}
function writePodFile(result) {
    if (!fs.existsSync(directories.ios)) {
        fs.mkdirSync(directories.ios);
    }
    try {
        fs.writeFileSync(directories.ios + '/Podfile',
            `use_frameworks!
pod 'Fabric', '${FABRIC_IOS_FABRIC}'
pod 'Crashlytics', '${FABRIC_IOS_CRASHLYTICS}'
# Crashlytics works best without bitcode
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] = "NO"
        end
    end
end
`);
        console.log('Successfully created iOS (Pod) file.');
    } catch (e) {
        console.log('Failed to create iOS (Pod) file.');
        console.log(e);
        throw e;
    }
}
function writePodFile ( result ) { if ( ! fs . existsSync ( directories . ios ) ) { fs . mkdirSync ( directories . ios ) ; } try { fs . writeFileSync ( directories . ios + '/Podfile' , ` ${ FABRIC_IOS_FABRIC } ${ FABRIC_IOS_CRASHLYTICS } ` ) ; console . log ( 'Successfully created iOS (Pod) file.' ) ; } catch ( e ) { console . log ( 'Failed to create iOS (Pod) file.' ) ; console . log ( e ) ; throw e ; } }
Create the iOS PodFile for installing the Fabric iOS dependencies and service dependencies

@param {any} result The answers to the micro-service prompts
Create the iOS PodFile for installing the Fabric iOS dependencies and service dependencies