curly
Junior Member
Posts: 16
|
Post by curly on Mar 14, 2019 23:27:41 GMT
Hi All,
I'm trying to run with rake and with Xcode 10.1. Updated to rhodes 7.0.0.beta7 for my project.
build.yml: --- ... iphone: configuration: Debug sdk: iphonesimulator12.1 ... ---
When I run: rake run:iphone
it fails with: [DEBUG] CMD: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build -target rhorunner -configuration Debug -sdk iphonesimulator12.1 -project PraxisCampus.xcodeproj -quiet ARCHS="i386 x86_64" ** BUILD FAILED **
rake aborted! Command '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild' with args 'build -target rhorunner -configuration Debug -sdk iphonesimulator12.1 -project PraxisCampus.xcodeproj -quiet' failed with code 65 /Users/jk/.rvm/gems/ruby-2.3.4@praxiscampus/gems/rhodes-7.0.0.beta7/platform/iphone/rbuild/iphonecommon.rb:143:in `run_and_trace' /Users/jk/.rvm/gems/ruby-2.3.4@praxiscampus/gems/rhodes-7.0.0.beta7/platform/iphone/rbuild/iphone.rake:2570:in `block (3 levels) in <top (required)>' ...
In Xcode the rhorunner build fails with: 'common/RhoConf.h' file not found
in app_build_configs.c
I am happy about any hints of how to solve this.
Thanks a lot in advance!
|
|
|
Post by Dmitry Soldatenkov on Mar 15, 2019 4:46:03 GMT
Hi,
Hm... It seems like user header search paths do not defined correctly in main XCode project - it should be prepared automatically by our scripts. Can you send me to dsoldatenkov@tau-technologies.com your XCode project main file from [your app folder]/project/iphone/PraxisCampus.xcodeproj/project.pbxproj ?
And also please send me terminal output produced by this command: rake run:iphone --trace
Also please check - you run command from correct configured terminal and you has correct configured RVM and environment. I mean: 1. You should select ruby Vm and gemset in RVM with --default attribute, because when build process we has run build script from XCode and XCode prepare for it new terminal with default settings (so if you switch ruby vm or gemset only in your current terminal view, default will be created with another ruby vm/gemset) 2. Please check you ~/.profile - we use it from XCode script for load all settings. I mean ~/.profile should be same with .bashrc and .bash_profile
|
|
curly
Junior Member
Posts: 16
|
Post by curly on Mar 15, 2019 9:01:20 GMT
Hi,
Thanks a lot for the very fast reply and the very helpful notes with which I solved my problem.
I forgot to run:
upgrade-rhodes-app
So there still has been rhodes-6.0.22 in the path instead of rhodes-7.0.0.beta7.
I also ran:
rhodes-setup
again with:
JDK path: /Library/Java/JavaVirtualMachines/jdk1.8.0_74.jdk/Contents/Home Android SDK path: /Users/<user_name>/Library/Android/sdk/ and Android NDK path: /Applications/android-ndk-r17c/
and now the iPhone simulator is up and running.
I use Ruby 2.3.4.
Thanks again and best regards!
|
|