Open pascalw opened 10 years ago
try to remove capabilities:
if it will not help, run gem list and post output pls
Hi @genywind, tried but no dice.
$ gem list
activesupport (3.2.13, 2.3.18)
ast (1.1.0)
builder (3.2.0)
bundler (1.2.1)
capybara (2.0.2)
capybara-webkit (0.14.2)
childprocess (0.3.9)
cucumber (1.2.3)
diff-lcs (1.2.4, 1.2.1)
extlib (0.9.16)
factory_girl (4.2.0)
ffi (1.4.0)
foreman (0.62.0)
gherkin (2.11.6)
highline (1.6.19)
i18n (0.6.1)
iconv (1.0.3)
json (1.7.7)
json_spec (1.1.1)
macaddr (1.6.1)
mime-types (1.21)
multi_json (1.6.1)
nokogiri (1.5.6)
parser (2.0.0)
powerpack (0.0.9)
rack (1.5.2)
rack-test (0.6.2)
rainbow (1.1.4)
rake (0.9.2.2)
rb-fsevent (0.9.3)
rhodes (4.0.0)
rhoelements (4.0.0)
rspec (2.14.1, 2.13.0)
rspec-core (2.14.5, 2.13.1)
rspec-expectations (2.14.1, 2.13.0)
rspec-mocks (2.14.3, 2.13.0)
rubocop (0.14.1)
rubygems-bundler (1.1.0)
rubyzip (0.9.9)
rvm (1.11.3.5)
sass (3.2.7)
selenium-webdriver (2.31.0)
slop (3.4.6)
sqlite3 (1.3.7)
systemu (2.5.2)
templater (1.0.0)
thor (0.18.0)
uuid (2.3.7)
websocket (1.0.7)
xpath (1.0.0)
check that you don't have RHO_HOME environment variable and post all output pls
@genywind see email.
http://docs.rhomobile.com/en/4.0.0/guide/build_ios#build-an-ios-app-with-xcode
rake build:iphone:setup_xcode_project
@genywind one step closer but not quite there yet. Now it stops at:
** BUILD SUCCEEDED **
cp ./build/Debug-iphonesimulator/libDsha1.a /Users/Pascal/.rvm/gems/ruby-1.9.3-p194@app-rho4/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Debug-iphonesimulator/rhorunner.build/libdigest-sha1.a
** Execute default
cp /Users/Pascal/.rvm/gems/ruby-1.9.3-p194@app-rho4/gems/rhoelements-4.0.0/libs/barcode/ext/iphone/libBarcode.a /Users/Pascal/.rvm/gems/ruby-1.9.3-p194@app-rho4/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Release-iphonesimulator/rhorunner.build/libBarcode.a
rake aborted!
No such file or directory - /Users/Pascal/.rvm/gems/ruby-1.9.3-p194@app-rho4/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Release-iphonesimulator/rhorunner.build/libBarcode.a
See full output in mail.
try to run rake clean:iPhone delete bin folder inside application rake build:iphone:setup_xcode_project
It get's worse. After that I get this:
CMD: "/Users/Pascal/.rvm/gems/ruby-1.9.3-p194@<snip>/gems/rhodes-4.0.0/bin/rhogen" api "/Users/Pascal/.rvm/gems/ruby-1.9.3-p194@<snip>/gems/rhodes-4.0.0/lib/commonAPI/coreapi/ext/Application.xml"
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- templater (LoadError)
If I then build from the command line first with rake run:iphone
and then build in Xcode again it get's a bit further but then after a while bails out with
ld: file not found: /Users/Pascal/.rvm/gems/ruby-1.9.3-p194@<snip>/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Debug-iphonesimulator/rhorunner.build/libBarcode.a
Check two moments:
@dmitrys can you elaborate on point 1?
Regarding point 2; rvm initialization is fine. Building in xcode worked fine on Rhodes 3.
Also building with app_type: rhoelements
also works fine.
point 1: in build.yml you have iphone section: iphone: configuration: Release sdk: iphonesimulator7.0 provisionprofile: codesignidentity: entitlements: BundleIdentifier: com.opened.studentaap BundleURLScheme: studentaapopened
So check that sdk is correct. to build for device: sdk: iphone7.0
@genywind that doesn't work either. Whatever I do, building in Xcode with app_type: rhoelements
just seems broken. With the same config, device:iphone:production
for example works from the command line.
Any news gents?
If I understand correctly, Pascal is using rhodes gem v4.0.0.0, released in September 2013. Looking at the commits it seems to me that some stuffs as been added since then to fix some of the iOS build issues. @genywind @dmitrys can you confirm if, moving to a newer rhodes gem (or cloning v4.0 branch) is the way to go to build for iOS.
Hello,
2 questions:
Regards, Evgeny.
@pascalw Try to set "build configuration" to release for your xCode project. You can find this option here: "Product" -> "Edit scheme" -> "Run your app name" -> "Info" tab -> "Build configuration" option.
Hello,
I'm upgrading a RhoMobile 2 application to RhoMobile 4. If I try to build for iOS from XCode I get the following exception:
I'm not using the barcode api though.
My build.yml looks like this (abbreviated):
Removing the app_tye: rhoelements line allows the app to build, but I do need some of the rhoelements APIs. Any ideas what's causing this and how I can fix it?