|
Post by newuser on Aug 11, 2023 12:21:59 GMT
Hi,
Running into build issues on rhodes 7.5.6 and xcode 14.3.1. Not sure if I've messed up the install or if this is a valid issue with rhodes, I'm getting the following:
RhoRubyImpl
'../../../../lib/commonAPI/coreapi/ext/shared/generated/cpp/NetworkBase.h' file not found Any help would be appreciated.
Thanks.
|
|
|
Post by Dmitry Soldatenkov on Aug 11, 2023 12:30:21 GMT
1. Try to make clean - remove "bin" and "project" folders from your application folder. if you build by XCode - regenerate XCode project again (rake build:iphone:setup_xcode_project)
2. Please provide full build log - if you build in XCode - open log pane, switch to "show all messages", select "expand all" in popup-menu and export whole log - if you build by our rake command - just save console output
|
|
|
Post by newuser on Aug 14, 2023 9:28:49 GMT
I did another clean build (removing bin and project folders) also a reboot of the Mac beforehand. I'm now getting a different set of errors, I've sent you the logs via email if that's ok?
Thanks.
|
|
|
Post by Dmitry Soldatenkov on Aug 14, 2023 15:06:03 GMT
Hi,
Please add this into your build.yml:
iphone:
ARCHS_device : ["arm64"]
We will fix it in next release.
|
|
|
Post by newuser on Aug 14, 2023 16:21:23 GMT
Thank you for that, I'm now getting a different error on build (I did another clean build by removing bin/project folders). I've emailed you the logs again.
|
|
|
Post by Dmitry Soldatenkov on Aug 14, 2023 17:17:18 GMT
Hi,
Do you modify XCOde project for enable bitcode ? Try to disable bitcode in build.tml by those lines (if you need bitcode - set to true): iphone: enable_bitcode: false
|
|
|
Post by Dmitry Soldatenkov on Aug 15, 2023 1:10:04 GMT
|
|
|
Post by newuser on Aug 15, 2023 8:23:08 GMT
Nothing in my build.yml relating to bitcode, I'll try the latest dev build as you suggest and will let you know. Thanks
|
|
|
Post by newuser on Aug 15, 2023 16:02:50 GMT
Using 7.6.0.dev16 with the other build.yml changes seems to have fixed the build issues (I also set the minimum iOS version to 12, not sure if that made a difference though I just noticed it was 10 by default).
I'm now unable to build for Android, which wasn't an issue with the latest 7.5 version. I get the following errors: error: resource xml/provider_paths not found error: failed processing manifest Error in AAPT2
Do I need to be using specific version of SDK/build tools/NDK/etc?
|
|
|
Post by Dmitry Soldatenkov on Aug 15, 2023 17:02:12 GMT
What is your Android SDK and NDK version ? We support fresh latest versions. If some error on fresh sdk/ndk - please send me full console output
|
|
|
Post by newuser on Aug 16, 2023 9:32:39 GMT
I've updated to the latest ones now, (build tools 34, SDK 34 and NDK 25.2.9519653). I've sent you the build output I get.
Thank you again for looking at this.
|
|
|
Post by Dmitry Soldatenkov on Aug 16, 2023 10:44:04 GMT
Hi, Sorry, but as I understand you try to build some old project and it miss some required resources (added for support new Android versions). In this case is xml/provider_paths. Please generate new application by our generator - "rhogen app AppName" and copy "resources" folder to your application folder (replace icons to your own etc.) - it contain xml/provider_paths. Also you can add it from our application template locate in [Rhodes gem root]/res/generators/templates/application/resources/android/res/xml/provider_paths.xml You can setup your own Android Manifest template - copy it from generated app or from [Rhodes gem root]/res/generators/templates/application/AndroidManifest.erb Now AndroidManifest.erb located in application root folder and you can modify it, if you do not want use default from Rhodes.
|
|
|
Post by newuser on Aug 16, 2023 15:05:37 GMT
Ok thank you, I've updated that now.
The build now seems to fail due to JDK issues, it seems like I'm outdated. Which version of JDK is recommended?
|
|
|
Post by Dmitry Soldatenkov on Aug 16, 2023 16:13:11 GMT
On my system openjdk version "11.0.2" and no issues. You can also setup JDK from Android Studio. You can manually edit Rhodes config files (or run rhodes-setup command in console) Config file located in [Rhodes gem root]/rhobuild.yml
|
|
|
Post by newuser on Aug 16, 2023 16:43:02 GMT
Thank you I managed to install various versions in the end. I was on 8 which seemed out of date. I installed 17 which seemed to complain about something being on too high of a version. Installed 11 and that built. I then installed the app, but the app crashed on open. I checked debug via Android Studio and found some issue with the NDK libraries? So I changed from the latest back to the version I had before (some version of 24) and now I'm able to build, install and open the app. The issue I'm getting now is firstly, the app thinks it's a launcher app so I get a prompt about using that or my default launcher when I hit the home button, this also means the app doesn't show up as an open application and can only be force closed from settings. Secondly, I can open the camera to take a picture from within my app, but I can't accept the image after taking it, the button doesn't do anything, I can press to retake or cancel. So I'm not sure what's happening there. Neither of these issues were happening before upgrading to rhodes 7.6 dev version so perhaps I'm also missing something in the upgrade of my app or I did something wrong there, but all I did was copy the res/xml folder and androidmanifest.erb file from the generated app.
|
|