Comments (7)
After doing some testing and experimenting i was able to convert iOCharts for a version fit for MacOS. Thanks for all the helpful guides you left along the way.
from ioscharts.xamarin.
Hey @EugeneUr,
Glad to read you've managed to do it. Last time I've checked the Charts library has a project target ready when you compile using Xcode. I'm not sure but most of the iOS ApiDefinition binding version can be reused. The SwiftLibrary will also need some work as it is not the same for iOS Devices, iOS Simulators and macOS.
Let me know if I can help with anything.
from ioscharts.xamarin.
Hey @Flash3001 ,
For posterity, i had to:
- Compile all the Swift4 projects with Xamarin.Mac and the mac .dylib. I also had to add a few more projects
- Compile Charts to Mac (the package packing is completely different than for iOS).
Note: this was very straight forward since its a single architecture type and you don't need to run it through lipo. - Modify the ApiDefinitions.cs file to switch over to the supported classes for Mac
Note: it appears that VisualStudio for Mac changed its behavior a bit when it comes to linking .framework, all those configs go into the .csproj now. - Added this custom afterBuild command so that the .framework can find the .dylibs in the DLL.
<command>install_name_tool ${TargetDir}/ChartsTest.app/Contents/MacOS/ChartsTest -add_rpath @loader_path/../Resources/Frameworks</command> <workingdir>${TargetDir}</workingdir>
Let me know if you want me to merge my changes with yours somehow. I think it makes sense for me to push the Swift4 change upstream to your repo, so that the NuGets are comprehensive as possible. However, i am not sure about the MacCharts, i think it should be its own repo since Charts.framework structure is completely different than iOS.
from ioscharts.xamarin.
Hey @Flash3001 ,
One thing that would be extremely helpful is if you could please send me (or add to this project) the charts xcode project that you used to generate the ApiDefinitions.cs and Structs.cs. It appears like a bunch of folks have contributed in the recent few months so it is causing a serious headache to try and make it work for MacOS.
Thank you!
from ioscharts.xamarin.
@EugeneUr I believe this is the one I used: https://1drv.ms/u/s!AnlSxFnqK6ttkuVxVs0rPoMAAnf-9g (uploaded as a Zip to OneDrive).
I agree with you. It makes sense to share the same repo for Swift4, but the Nuget packages need to be separated because of the target on Nuget and the script to move files around because of the difference on Simulator and Device.
from ioscharts.xamarin.
Thank you so much @Flash3001, it worked perfectly! Love it when i can reuse all my iOS charts code for MacOS :)
I will work on contributing back to both project with all my finding by the end of the week so that it will super comprehensive.
from ioscharts.xamarin.
@EugeneUr Do you have a repo that you can share with your macOS version? TIA, Sushi
from ioscharts.xamarin.
Related Issues (20)
- InvalidSwiftSupport - Again HOT 5
- Crash with custom ChartXAxisRenderer HOT 2
- DYLD, Symbol not found HOT 1
- XAxis value formatter not working HOT 1
- Was Successfully able to upload the ipa in the Application Loader But got an Email from Apple iTunes Connect stating there are one or more issues HOT 1
- CandleStick Chart is not showing up within a CombinedChart on the latest release of 3.2.0 HOT 4
- Works fine on Device, but not in Simulator HOT 9
- upload to appstore issue HOT 3
- Library not loaded: @rpath/libswiftCore.dylib HOT 13
- First point not showing on line graph HOT 1
- How to Control the Y axis Value difference it is always showing 100 difference HOT 1
- iOSCharts crash on iOS 13 only, update iOSCharts.Xamarin to support iOS 13 HOT 1
- Support for xCode 11 HOT 1
- Invalid Swift Support - The expected dylibs are missing from the app's Framework location, such as /Payload/CreditInfo.iOS.app/Frameworks HOT 2
- Missing library - libswiftCore.dylib error
- Custom renderers are not working HOT 2
- [Query]Are you planning to update binding to 4.0.1 ? HOT 1
- Round corners
- Not compatible with the latest .Net for iOS
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 ioscharts.xamarin.