|
Post by Priya Saini on Jan 2, 2018 10:45:21 GMT
Rhostudio 6.0.11 Rhodes 5.5.0.55
Getting this error:
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated] ld: file not found: /Users/hemant/workspace/l3EthicsNov17/project/iphone/build/rhorunner.build/debug-iphonesimulator/rhorunner.build/libDecryptstub.a clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please suggest.
|
|
|
Post by Dmitry Soldatenkov on Jan 2, 2018 17:58:34 GMT
Hm... Please show me your build.yml file Error is - extension Decryptstub not builded properly and linker can not found its lib file. So we should see full XCode build log for any conclusion. You can ope XCode tab with logs, select log and select [save...] button - see attached screenshot Also write your Mac OS version and XCode version and iOS SDK version please.
|
|
|
Post by Dmitry Soldatenkov on Jan 2, 2018 17:59:18 GMT
If you can not attach big file to forum - you can just send it to me directly via dsoldatenkov@tau-technologies.com
|
|
|
Post by Priya Saini on Jan 3, 2018 5:03:11 GMT
Sent you the logs on email.
|
|
|
Post by Dmitry Soldatenkov on Jan 3, 2018 12:57:06 GMT
Thanks.
Sorry - I forget remind about log filter. Please in log pane toolbar choose [All Messages] instead of [All Issues] save again and resend log.
|
|
|
Post by Priya Saini on Jan 5, 2018 16:21:14 GMT
Sent you the logs on email again yestarday.
|
|
|
Post by Dmitry Soldatenkov on Jan 6, 2018 11:29:07 GMT
I see your issue.
When you use RVM you can switch gemset/ruby in terminal window, but if you do not use "--default" flag then you switch gemset ONLY in your current terminal tab/window. When XCode will build rhomobile project XCode open new terminal and call some commands for prepare extensions etc. So in this new opened terminal window RVM setup default gemst/ruby and it can be different with defined by your command in console!
So I see in log - you install rhomobile into ruby 2.3 default gemset but in new opened console from XCode used Ruby 2.4 (I think your default ruby)
Please select ruby/gemset with " --default" argument in command like this (select ruby 2.2.5 and "mygemset" gemset for current console and for all new opened): rvm use 2.2.5@mygemset --default
Also please check your ~/.profile contain RVM init code like this : [[ -s "/Users/USERNAME/.rvm/scripts/rvm" ]] && source "/Users/USERNAME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
XCode use ~/.profile for configure opened terminal for run rhomobile build script
P.S. You can see log output of rhomobile build script by find this sctring : "START buildRhoBundle script" FOr example in your current log you can see next output:
"START buildRhoBundle script RhoBundle should BUILD ! START Prepare build bundle - switch app ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16] rake aborted! LoadError: cannot load such file -- rest_client /Users/hemant/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/rhodes-5.5.0.55/lib/build/rhohub.rb:3:in `<top (required)>' /Users/hemant/.rvm/gems/ruby-2.3.3@global/gems/rhodes-5.5.0.55/Rakefile:88:in `<top (required)>' /Users/hemant/workspace/l3EthicsNov17/Rakefile:36:in `load' /Users/hemant/workspace/l3EthicsNov17/Rakefile:36:in `<top (required)>' /Users/hemant/.rvm/gems/ruby-2.4.0@global/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' (See full trace by running task with --trace) FINISH Prepare build bundle - switch app START build bundle ... rake aborted! LoadError: cannot load such file -- rest_client /Users/hemant/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/rhodes-5.5.0.55/lib/build/rhohub.rb:3:in `<top (required)>' /Users/hemant/.rvm/rubies/ruby-2.3.3/lib/ruby/gems/2.3.0/gems/rhodes-5.5.0.55/Rakefile:88:in `<top (required)>' /Users/hemant/.rvm/gems/ruby-2.4.0@global/gems/rake-12.0.0/exe/rake:27:in `<top (required)>' (See full trace by running task with --trace) FINISH build bundle ... FINISH buildRhoBundle script "
So we can see in this output - rhomobile rake script can ot load some gem because rhomobile installed in another ruby/gemset - for run script used ruby 2.4 but I see you install rhomobile into ruby 2.3
|
|