Comments (8)
Sorry, I don't quite understand this. You want to create your own action? Or you want to run your existing shell script?
from fastlane.
I want to move my existing script to actions, but in my script contains XCode variable can ruby code in actions access them?
from fastlane.
Are you talking about an xcodebuild
command? Can you share your existing script?
from fastlane.
I am trying to do the same thing
I try running:
sh "./ipa.sh"
which contains:
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" --sign "${DEVELOPER_NAME}" --embed "${PROVISONING_PROFILE}"
in my fastlane actions for my lane.
I tried including the above script directly into a fastlane sh action but it complains about the ${
I couldn't get it to work so I tried to move it to an external script but it fails with permission denied
[SHELL COMMAND]: ./ipa.sh
INFO [2015-02-06 11:43:31.74]: Variable Dump:
INFO [2015-02-06 11:43:31.74]: {:LANE_NAME=>:beta, :START_TIME=>2015-02-06 11:42:01 -0700, :BUILD_NUMBER=>0, :SIGH_PROFILE_PATH=>"/path/to/app.mobileprovision"}
FATAL [2015-02-06 11:43:31.74]: Permission denied - fork failed
FATAL [2015-02-06 11:43:31.75]: fastlane finished with errors
is there a way to embed those variables into a fastlane sh action?
from fastlane.
Heres the trace where the error occurred
/Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/actions/actions_helper.rb:60:in `spawn': Permission denied - fork failed (Errno::EACCES)
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/actions/actions_helper.rb:60:in `sh_no_action'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/fast_file.rb:60:in `block in sh'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/actions/actions_helper.rb:29:in `execute_action'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/fast_file.rb:59:in `sh'
from (eval):24:in `block (2 levels) in parse'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/runner.rb:13:in `call'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/runner.rb:13:in `block in execute'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/runner.rb:12:in `chdir'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/runner.rb:12:in `execute'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/lane_manager.rb:15:in `block in cruise_lanes'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/lane_manager.rb:14:in `each'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/lib/fastlane/lane_manager.rb:14:in `cruise_lanes'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/bin/fastlane:31:in `block (2 levels) in run'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/commander-4.2.1/lib/commander/command.rb:180:in `call'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/commander-4.2.1/lib/commander/command.rb:155:in `run'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/commander-4.2.1/lib/commander/runner.rb:421:in `run_active_command'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/commander-4.2.1/lib/commander/runner.rb:81:in `run!'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/commander-4.2.1/lib/commander/delegates.rb:8:in `run!'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/bin/fastlane:59:in `run'
from /Users/user/.rvm/gems/ruby-2.2.0@global/gems/fastlane-0.1.7/bin/fastlane:63:in `<top (required)>'
from /Users/user/.rvm/rubies/ruby-2.2.0/bin/fastlane:23:in `load'
from /Users/user/.rvm/rubies/ruby-2.2.0/bin/fastlane:23:in `<main>'
from /Users/user/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
from /Users/user/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
from fastlane.
Mh, not sure why it complains about the $
. Maybe you can just run puts system("your command")
instead of the sh
?
from fastlane.
Ok, there is a way of getting those variables from command like using following command:
xcodebuild -workspace Appease.xcworkspace -scheme Previews -showBuildSettings
Though, I'm not convinced that fastlane
should handle this. If all you need is $INFOPLIST_FILE, I'd suggest declare it inside that script (yep it's hardcode, but do we move infoplist around often?).
Hey, @kdawgwilk, maybe use fastlane
actions to get an ipa?
from fastlane.
What's the current status here? I'll close the issue for now, feel free to re-open if you're still experiencing problems.
from fastlane.
Related Issues (20)
- fastlane sigh download_all and "Error parsing provisioning profile at path..."
- fastlane match HOT 4
- bundler: command not found: fastlane
- Individual API Key not supported HOT 3
- fastlane deliver init is not working in CLI
- JEG2/highline should be updated to avoid warning of abbrev missing in standard lib for ruby 3.3.0
- How to get raw exit code from Fastlane HOT 1
- Match import to s3 Crash on encrypting. HOT 2
- Provisioning profile expiration comparison compares Time and DateTime
- AvailableTerritories is deprecated and fastlane is not upgraded to new api endpoints HOT 5
- Match managing provisioning profiles for DriverKit
- curb-1.0.0/lib/curl/easy.rb - Failed to read/open file
- `match` behaves differently in v2.220.0: `wrong final block length` HOT 12
- Can't upload build to Test Flight; [!] undefined method `refresh!' HOT 2
- A parameter has an invalid value - 'prices' is not a valid relationship name HOT 8
- I run the command 'fastlane match development'. and i got the following error: Looking for related GitHub issues on fastlane/fastlane... Found no similar issues. To create a new issue, please visit: https://github.com/fastlane/fastlane/issues/new Run fastlane env to append the fastlane environment to your issue [!] The request could not be completed because: This request is forbidden for security reasons - You currently don't have access to this membership resource. Contact your team's Account Holder, or an Admin.
- Build_for_testing fails sporadically with error 'Could not find or use auto-linked framework' HOT 2
- Can fastlane support filling in Chinaโs ICP registration number?
- [match] provisioning profile generated via match blocks release installation on TestFlight (or on device)
- if and switch expressions Swift HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane.