Questions tagged [run-script]
112 questions
5
votes
1 answer
What types of languages are supported in Xcode build phases run script?
I am new to scripting but I need to learn it for a script I need to run in the build phases of an Xcode project.
What types of scripts can I write in there? What types of languages are supported? Is there one scripting language easier to learn than…

Lizza
- 2,769
- 5
- 39
- 72
4
votes
2 answers
Global Xcode run scripts
In order to automatically update build dates and build numbers, I set up a run script for the build phase in my scheme:
# Auto Increment Version Script
buildPlist=${PROJECT_DIR}/${INFOPLIST_FILE}
CFBuildNumber=$(/usr/libexec/PlistBuddy -c "Print…

Eiko
- 25,601
- 15
- 56
- 71
4
votes
2 answers
iOS: How to upgrade my CFBundleVersion and my CFBundleShortVersionString automatically in Xcode 11? (My old script doesn't work anymore)
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…

ΩlostA
- 2,501
- 5
- 27
- 63
4
votes
3 answers
How to exit minicom via scripting
I have a minicom script which sends some commands via serial and expects something back(which works) but im having trouble exiting the minicom screen.
Below is the minicom script:
success1:
print \nSuccessfully received running!
send…

Fisnik Hajredini
- 73
- 1
- 1
- 5
4
votes
1 answer
Firebase Crash Reporting without CocoaPods
I'm implementing Firebase Crash Reporting in a project which doesn't use CocoaPods, and Firebase is working great, but when it comes to uploading the symbol files for readable crash logs, the upload-sym executable that is expected to be run at the…

Chris Conway
- 1,028
- 7
- 18
4
votes
0 answers
Xcode is using wrong PATH when executing a run script
When I try to execute a run script phase in Xcode 7.1 on Yosemite, I seem to be using the wrong PATH...
When I echo $PATH from the script, I get the…

user1947561
- 1,117
- 2
- 8
- 13
4
votes
3 answers
Where can we open the `Post-build script` box of a build process template?
As guided here, we can add extra script to run along the build process.
I can't find where to open this dialog to put my script in the post-build box.
Where is it?
Update
I go for Edit a build definition - Process section and just see the below…

Nam G VU
- 33,193
- 69
- 233
- 372
4
votes
1 answer
How can I escape the spaces in $SRCROOT in my run script in Xcode?
I have a run script that gets the value of the current project's path via $SRCROOT. I pass this path as a parameter to an app in the script. The problem is that if my project name has a space, $SRCROOT doesn't evaluate to the full, correct path. It…

Lizza
- 2,769
- 5
- 39
- 72
4
votes
1 answer
"command not found" with custom run script and xcodebuild
I am running a customized script which includes a command (ios-sim) which should be known to bash (the binary lies in /usr/local/bin, $PATH knows). However, when invoked by xcodebuild the console logs "command not found".
I am able to execute the…

ff10
- 3,046
- 1
- 32
- 55
4
votes
6 answers
Run jquery function again after ajax call
Is there any way to run a script again after an ajax call?
I have a photoswipe (lightbox) jquery plug-in I call like this:
jQuery(document).ready(function($){
if( $('.img-frame a').length > 0 ){
var myPhotoSwipe = $(".img-frame…

djwd
- 315
- 2
- 5
- 15
3
votes
2 answers
Detect Debug or Release for Custom Configuration With Run Script
How could detect debug or release is running with build phases/run script?
I have four custom configuration each one duplicated from release or debug.
I found this answer but it doesn't work
if [ "${CONFIGURATION}" = "Release" ]; then
…

Hamed
- 1,678
- 18
- 30
3
votes
1 answer
execute npm script from another package
Suppose I have 2 node packages, one called parent and one called child. child has a package.json with some scripts. Is it possible to include the scripts from child in the context of parent?
For example:
child/package.json:
"scripts":{
…

Ben
- 16,124
- 22
- 77
- 122
3
votes
2 answers
django-extensions: Run a script using runscript which is inside a folder within scripts
I am getting problems running a script that is inside a folder inside of scripts folder using runscript command included in django-extensions.
The folder structure in my project is like:
-apps
-scripts
-syllabus
-first.py
…

Santosh Ghimire
- 3,087
- 8
- 35
- 63
3
votes
3 answers
Increment xcode project User-Defined Variable through Script
I want to increment the User-Defined variable in xcode project. Is there any script to increment User-Defined variables.
I have a user-defined variable "PATCH". And in info.plist, I am assigning this Variable to Bundle version.
I want that this…

Sahil Mahajan
- 3,922
- 2
- 29
- 43
3
votes
1 answer
Xcode - How to move app out of sandbox with run script?
Basically from what I understand is that if my app wants to use serial communication via the dock connector (pins 12 / 13) the app has to live outside the app sandbox folder. Now I don't want to have to ssh into my phone and copy theAppFolder.app…

ipatch
- 3,933
- 8
- 60
- 99