run-script

is there any change with ios static library run script with xcode 10?

不羁岁月 提交于 2020-01-05 07:15:33
问题 I have created a static ios library, and I have created Aggregate target to get an universal library as output for that i have included shell script in the build phase section: # define output folder environment variable UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal # Step 1. Build Device and Simulator versions xcodebuild -target OffsetCalLib-Universal ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"

Check-and-run-apollo-codegen.sh for Apollo not working?

天涯浪子 提交于 2019-12-24 06:49:09
问题 I am trying to install Apollo in my iOS Project. I follow the instructions here: https://www.apollographql.com/docs/ios/installation.html. When I complete the "Adding a Code Generation Build Step," I get an error. It cannot find the file check-and-run-apollo-cli.sh. The error is "Command PhaseScriptExecution failed with a nonzero exit code." So I checked the file path it was giving me. It seems that "check-and-run-apollo-cli.sh" doesn't exist, but "check-and-run-apollo-codegen.sh" does. So I

iOS: How to upgrade my CFBundleVersion and my CFBundleShortVersionString automatically in Xcode 11? (My old script doesn't work anymore)

只愿长相守 提交于 2019-12-23 21:35:16
问题 I have a script that upgraded my version (0.01 by 0.01) and my build (1 by 1). It doesn't work anymore with the Xcode 11. Here is my script: #!/bin/bash rm -rf build Version=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "$INFOPLIST_FILE") Version=$(echo "scale=2; $Version + 0.01" | bc) Build=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE") Build=$($Build + 1) /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $Build" "$INFOPLIST_FILE" if [ "$

Run Script Phase after dSYM is generated with Xcode 10 (on build)

a 夏天 提交于 2019-12-22 12:07:54
问题 In the New Features section, it states: In the new build system, shell scripts can't rely on the state of build artifacts not listed in other build phases (for example, the Info.plist file or .dSYM files.) Add files the script build phase depends on as explicit input dependencies to the shell script build phase. (40852184) In previous Xcode, the script was executed successfully but now it can execute when the dSYM file size is 0. How can I have a Run Script Phase that will start only after

Parse Crash Reporting Not Working

情到浓时终转凉″ 提交于 2019-12-13 00:44:53
问题 I've been following this tutorial on how to enable Parse Crash Reporting: https://www.youtube.com/watch?v=L4SMyHAVJgk However, after I create the run script and build my app, I get the following error: /bin/sh failed with exit code 2 I'm not the best at understanding weird error codes like this so any help would be greatly appreciated! Here is my run script: export PATH=/usr/local/bin:$PATH cd </Users/dom/MyApp/parse> parse symbols "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}" Also, I'm

How to properly run a npm script with arguments

久未见 提交于 2019-12-10 13:45:00
问题 I've written a small command line program with nodejs and I want to be able to type npm run test and run the program with the arguments below. Typing the following command directly works, node.exe scrappee.js -u 'https://github.com/matutter/{}' -us 'cloggie, AirRocks-Flightcontroller' -s '$commit=li.commits > a > span, $sha=.right .commit-tease-sha' -pm .\test\example_parse_module.js But with the contents of my package.json as follows there is no output whatsoever. "scripts": { "test" : "node

How to execute large MySql data-insert script file using command line in Windows 7?

别等时光非礼了梦想. 提交于 2019-12-10 09:25:00
问题 I'm new to MySQL so please guide me through how to do this via command line; I've tried but I get NO logging in the console output and the character set is not utf-8 Please help. 回答1: Since your SQL script doesn't contain any character set configuration directives, mysql just runs in its default character set Latin1. To change the default character set, start mysql like this: mysql -e "source /path-to-backup/backup-file.sql" db_name --default-character-set=UTF8 回答2: mysql -e "source /path-to

named parameter to npm run script

China☆狼群 提交于 2019-12-07 19:51:47
问题 I would like to pass a named parameter to an npm run script so I can do something like the following: "scripts":{ "say-hello":"echo $greeting && ls" } npm run hello --greeting=hello I'd like it to then put 'hello' in place of the $greeting variable, echo the command and then do the ls (this is obviously just a simple example of a chained command) 回答1: Just found out that this works: "scripts":{ "say-hello" : "echo $npm_config_greeting && ls" } Edit: Any environment variables that start with

named parameter to npm run script

早过忘川 提交于 2019-12-06 15:42:35
I would like to pass a named parameter to an npm run script so I can do something like the following: "scripts":{ "say-hello":"echo $greeting && ls" } npm run hello --greeting=hello I'd like it to then put 'hello' in place of the $greeting variable, echo the command and then do the ls (this is obviously just a simple example of a chained command) robertklep Just found out that this works: "scripts":{ "say-hello" : "echo $npm_config_greeting && ls" } Edit: Any environment variables that start with npm_config_ will be interpreted as a configuration parameter. For example, putting npm_config_foo

Run Script Phase after dSYM is generated with Xcode 10 (on build)

Deadly 提交于 2019-12-06 13:32:25
In the New Features section, it states: In the new build system, shell scripts can't rely on the state of build artifacts not listed in other build phases (for example, the Info.plist file or .dSYM files.) Add files the script build phase depends on as explicit input dependencies to the shell script build phase. (40852184) In previous Xcode, the script was executed successfully but now it can execute when the dSYM file size is 0. How can I have a Run Script Phase that will start only after the dSYM file is generated? How can I create an "explicit input dependencies to the shell script build