Comments (9)
I’m pretty sure it’s just some Apple permissions thing or some such but still need to investigate. Been planning to do it for months now and it keeps getting bumped down the list. Hopefully nothing too complicated.
from vesc_tool.
OK cool I did some quick digging and found the issue I think. Apples file saving and permissions stuff are a bit wonky so I am seeing that when it trys to call CodeLoader::reloadPackageArchive() the check for file.exists() is returning false. Probably just defining a different path for iOS or some such will fix it I will keep tinkering
from vesc_tool.
Ok, got it working now but need to decide how to proceed with Vedder before merging changes. There were two changes I had to make. iOS doesn’t allow writing to local app data so I had to change the write location to documents instead of appdata and then I had to add a check to create the file since when first launched it won’t exist.
The question is if I change the location only for iOS by performing a platform check or if we just store the archive in default documents location on all platforms. My guess is just iOS using the documents variant is probably the right move since having a weird .rcc file pop up in my documents file on desktop seems a bit wonky.
from vesc_tool.
Think we can close this one now.
from vesc_tool.
I forget, what was the consensus on the vesc discord? Was this an apple issue blocking some feature or just some sort of api thing that needed to be worked around? @Jfriesen222 might have input as the ios app maintainer?
from vesc_tool.
I wasn't able to find any more detailed discussion on it myself when searching the discord, but Ben mentioned he brought it up to Jeff again a few days ago and that he said he'd look into it 👍
from vesc_tool.
Nice that you found the problem! I think the firmware archive (that now is available on mobile too) will have the same problem, so it would be good to make the same fix there.
I think it is best to make the fix specific to ios as you don't have permissions on android to write there until you have asked to user to give you permanent permission on the first write. Also, as you said, it is best to not have a weird rcc-file show up there and confuse users.
from vesc_tool.
Good point I am almost finished with the changes now but I will add in the firmware archive as you suggest.
from vesc_tool.
Found a better way to keep using app data instead and keep those files hidden on iOS. I guess a mkpath call is needed. Thanks stackoverflow.
from vesc_tool.
Related Issues (20)
- Old version availability HOT 3
- App parameters not stored correctly
- VESC Not Functioning with Magnetic or Quadrature Encoders
- vesc_tool_6.02 and BETA is not fit in screen size of laptop Samsung 1366x768 HOT 2
- Issue with Vesc Tool: MPU6050 IMU Not Detected After Power Cycling HOT 1
- [Feature Request] Show Motor KV value after motor detection completes HOT 4
- Can't enter negative beta value for thermistor
- Bluetooth unable to select vesc
- Prevent cogging and enable low rpm control HOT 1
- BLE connection times out on Android 14 HOT 1
- VESC ADC and PAS
- Building a package with failed lisp import exits successfully
- QT update HOT 1
- Dataloss when reopen and overwriting an existing .vescpkg file HOT 5
- Servo-Out Firmware for Enertion FOCBOX HOT 9
- Package - Images in description aren't being displayed at all HOT 13
- Crash when trying to run VESC Tool from the command line with --buildPkg
- Load Custom UI keeps popping up on connect on Android 14 HOT 2
- Build failure on Flathub HOT 1
- XCB Error while running with QT5.15 build file in Ubuntu.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vesc_tool.