Bitrise bash script - command not found - bash

i am building an android project with Bitrise.
i am running a bash script that resize the app icon with "sips" command.
locally everything is working fine, but when i am running on Bitrise build i got an error:
./Android/android-icons-generator.sh: line 32: sips: command not found
any idea why the sips command is not found?
thanks for your help !!

It sounds like you are building locally using macOS and on Bitrise you are building on Linux. As Viktor says in his comment the "sips" command is not available on Linux. You could solve this one of two ways:
Use a cross platform tool for image resizing (ImageMagick is a popular option) and make sure that is installed as part of your build.
Switch to using the Hybrid stack on Bitrise which provides macOS with the Android tooling installed.

Related

programmatically xcode build(ios library) -is it possible?

I have mac descktop app(flutter, small obfuscator for objective-c code). after obfuscation of the source code, the user builds a ios library in XCode. is it possible to start the build process from my application?
These my options are:
Xcode Command Line Tools - it's very similar, but looks a bit complicated.
Also, I don't know yet how to use the terminal (terminal commands) in the desktop application - is it even possible?
fastlane -this tool is more for deployment. can i use this to build locally?
What do you recommend? maybe there are other options?
read below documentaion and set flutter path so it can be runable in terminal or you can get help from youtube to set flutter path
then simply open terminal and run below comands one by one
1.open -a simulator
this command open ios emulator
write cd and drag your project folder path
cd .../example
flutter run
✅your app launch in emulator
flutter path set details
https://docs.flutter.dev/get-started/install/macos

How can I run Go code with Bazel on Windows platform on my Mac?

I have to test Go code using Bazel on Windows Platform to make sure the tests pass on Windows too. However, I have a Mac machine. I have tried VirtualBox/Vagrant setup and shared the directory. I can get Go to work there too. Bazel gives some version conflict with Visual Studio, but I have a workaround with go test.
Is there a known Windows image for Mac that has Golang, Bazel, etc all setup already that I can simply docker run or something?
I would use an image like filipesilva/bazel-windows-docker-container, made to include bazel.
You can modify its Dockerfile to include a Golang binary archive (like go1.15.7.windows-amd64.zip) you simply unzip under %USERNAME\go
You should end up with a Windows image, to run on your Mac through VirtulaBox, or using a vagrant environment, as described in StefanScherer/docker-windows-box/.

-nographics alternative for Mac OS X when running Unity3d from the command line?

I would like to implement CI on a Unity3D project running on a Mac. Jenkins is my preferred CI server, I have looked at the Unity3dBuilder Jenkins plugin and I'm looking for alternatives to it. To start with, there is no -nographics option in Mac OS X.
The Unity3d -nographics command line option is not available on Mac.
You have complete control of the arguments you send to Unity3d through the plugin when specifying the "Editor command line arguments".
What are you trying to do exactly ?
Note: I am the author of the Unity3DBuilder plugin. So please report any missing feature to the plugin's issue tracker.

Grunt, Cordova & Windows Phone

I am developing an app for multiple platforms using Cordova. Grunt is used as a build tool. I use it to copy my source code to the right folder for each platform so I can develop them independently.
This works fine with Android using the scripts that are provided by Cordova. However, I have no idea if or how it is possible to automate the WP build process. I'm looking for two things:
Add all files in the www directory to the VS project (it does not include files that are not added to the project, which is sad).
Build, install and run the app in the emulator. I used adb & Grunt's exec for Android which was really simple, is there something similar for WP?
If you look in a cordova windows phone project there is a directory called 'cordova' which contains scripts to do all of this.
There should be scripts to build and run your project.
The run script can pretty much do it all. You can call it like :
run --device --release
or
run --emulator --debug
or just
run
A recent commit now makes it possible to use www\** in the .csproj file, which solved my first issue.

Emulate Run button in Xcode from command line

I'm looking for a way to build and run my app in the simulator from the command line. I need it to behave the same way as when you press Run in xcode.
I can build it with xcodebuild and I tried using simulator with -SimulateApplication option. My app launched but my tests didn't start executing (as they do when run from xcode).
I tried the script I found here and few other AppleScripts I found on the web. They didn't work for me. Commands like build and clean were ignored and others would throw errors. Maybe it's because I use xcode 4. Please help.

Resources