3 Replies Latest reply on Feb 25, 2014 5:25 AM by Kutir Mobility

    Rhodes 4.0 with Xcode 5

    subramanya Ss

      Hi All,


      Rhodes is upgraded to 4.0 and XCode 5.0 which required for iOS7. But i am having an issue while building the app in XCode5.0. below are the log generated when the app is build in XCode5. Please help me on this. Thanks in advance.


      extpaths: ["/Users/starsoft/workspace/RhoMobileApplication8/extensions", "/Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/lib/commonAPI", "/Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/lib/extensions", "/Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rhoconnect-client-4.0.0/lib/../ext"] $SHELL ./build build script in extension already executable : /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/lib/commonAPI/coreapi/ext/build ** Invoke default (first_time) ** Invoke build:all (first_time) ** Invoke build:config (first_time) ** Execute build:config ** Execute build:all rm -rf build rm -rf /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Debug-iphoneos/rhorunner.build/libCoreAPI.a CoreAPI extension ! PWD: /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/lib/commonAPI/coreapi/ext/platform/iphone CMD: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build -target CoreAPI -configuration Debug -sdk iphoneos7.0 xcodebuild: error: SDK "iphoneos7.0" cannot be located. cp ./build/Debug-iphoneos/libCoreAPI.a /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/build/rhorunner.build/Debug-iphoneos/rhorunner.build/libCoreAPI.a rake aborted! No such file or directory - ./build/Debug-iphoneos/libCoreAPI.a /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:1515:in stat' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:1515:inblock in fu_each_src_dest' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:1531:in fu_each_src_dest0' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:1513:in fu_each_src_dest' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/fileutils.rb:395:in cp' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/file_utils_ext.rb:37:in cp' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/lib/commonAPI/coreapi/ext/platform/iphone/Rakefile:72:inblock (2 levels) in <top (required)>' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in call' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:inblock in execute' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in each' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in execute' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:inblock in invoke_with_call_chain' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:205:inblock in invoke_prerequisites' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in each' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:203:in invoke_prerequisites' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:183:inblock in invoke_with_call_chain' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/monitor.rb:211:in mon_synchronize' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in invoke' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in invoke_task' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in block (2 levels) in top_level' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in each' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in block in top_level' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in run_with_threads' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in top_level' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:inblock in run' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in standard_exception_handling' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in run' /Users/starsoft/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/gems/1.9.1/gems/rake-10.0.4/bin/rake:33:in<top (required)>' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/bin/rake:23:inload' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/bin/rake:23:in <main>' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:ineval' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `' Tasks: TOP => default => build:all rake aborted! Command failed with status (1): [$SHELL ./build...] /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/rbuild/iphone.rake:813:in build_extension_lib' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/rbuild/iphone.rake:871:inblock in build_extension_libs' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/rbuild/iphone.rake:832:in each' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/rbuild/iphone.rake:832:in build_extension_libs' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/rbuild/iphone.rake:983:inblock (3 levels) in <top (required)>' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/rbuild/iphone.rake:658:inblock (3 levels) in ' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in eval' /Users/starsoft/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in' Tasks: TOP => build[image: :iphone:]rhobundle (See full trace by running task with --trace) Showing first 200 notices only Command /bin/sh failed with exit code 1

        • Re: Rhodes 4.0 with Xcode 5
          Kutir Mobility

          Hi Subramanya,

          The log says "error: SDK "iphoneos7.0" cannot be located",

          In your build.yml set

          sdk: iphonesimulator7.0

          and try again.

           

          Visnupriya R

          Kutir Mobility

            • Re: Rhodes 4.0 with Xcode 5
              subramanya Ss

              I am able to build the app, the problem was with the location of SDK "iphoneos7.0". If there are multiple XCode versions are installed in the system, then it will search the SDK's in the default path(first XCode installed path). i moved the SDK file to the default path and it build successfully.

               

              But, i am having an issue of screen rotation in iOS7.

              Our app is developed only in Portrait mode and not in Landscape, but when we open the app in Landscape mode in iPad (OS 7),

              1. the splash screen will displayed in landscape mode for few seconds and then turns to portrait.and the image is stretched.

              2. the number pad is displaying in landscape mode even we turn the device in portrait.

               

              help me on this plzzzzzzzzzzzzzzzzzzzzzzz................

               

              Thank you