Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Macaw Catalyst enabled #610

Closed
khatchik opened this issue Aug 5, 2019 · 7 comments · Fixed by #616
Closed

Make Macaw Catalyst enabled #610

khatchik opened this issue Aug 5, 2019 · 7 comments · Fixed by #616
Assignees
Milestone

Comments

@khatchik
Copy link

khatchik commented Aug 5, 2019

Hi!,

We've been using your library to render SVGs and we are preparing our iOS App to be delivered in Mac OSX. As part of that work we had to fork the library and do a minor adjustment to be able to make it "Catalyst" enabled.

We had to go to the project.pbxproj and change:
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;

Is there a chance we can get those fixes in the next release so we can release our Mac App from the official repo?

Thanks in advance!

@khatchik
Copy link
Author

Any news here?

@amarunko
Copy link
Contributor

Hi, @khatchik, Macaw already included swift version = 5 config. In which section of pbxproj did you enable this setting? Also, for mac os users - Macaw shouldn't have base SDK - iOS, sorry. But, if you are using cocoapods as a dependency manager, you can set up project settings from the pod file.

for example:

post_install do |installer_representation|
  installer_representation.project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SDKROOT'] = 'iphoneos'
    end
  end
end

@simonboots
Copy link

I just did another round of tests (with Xcode 11 beta 5 and in Macaw's master branch), and the only changes needed to make Macaw Catalyst-ready is to change SUPPORTED_PLATFORMS to include macosx in the Macaw target:

- SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
+ SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx";

Alternatively, SUPPORTED_PLATFORMS can be remove altogether from the target because the project settings already list all three platforms as the default.

Obviously, this change need to be made to both the Debug and the Release config.

@khatchik
Copy link
Author

Can we get this done? It is a line of code and will unblock anybody trying to use Macaw for Catalyst Apps...

@ystrot
Copy link
Member

ystrot commented Aug 22, 2019

Hi @khatchik,

Is this a fix you're waiting for: #614 ? It was already merged to the master and will be part of the next release.

@simonboots
Copy link

Hi @ystrot,

I just tried to build Macaw as a Catalyst binary and noticed that SUPPORTED_PLATFORMS lists macOS as a platform (as of #614). However, macOS doesn't seem to be a valid platform. The correct platform name for macOS is macosx.

@ystrot
Copy link
Member

ystrot commented Aug 22, 2019

Hi @simonboots,

Could you please create a corresponding PR? In this case I'll be able to merge it today.

@ystrot ystrot self-assigned this Aug 23, 2019
@ystrot ystrot added this to the 0.9.6 milestone Aug 23, 2019
explaineverything pushed a commit to explaineverything/Macaw that referenced this issue Mar 3, 2020
* master: (79 commits)
  Update .gitignore
  Add Package.swift
  Revert "Fix exyte#623: Shape.bounds returns incorrect rectangle"
  Fix exyte#623: Shape.bounds returns incorrect rectangle
  exyte#640 Remove force unwrap in `SVGParser.doubleFromString` method
  Fix crash in parsing pattern
  Formatting issues fix
  Fix gradient stops parsing
  Lint formatting issues fixed
  Formatting fixes
  fix source files of projects, add to macos target
  Enable Catalyst support (fixes exyte#610)
  Fix links in readme
  Update README.md
  Added supported platform - macOS
  Restore method
  Replace test references
  Revert "Add print to tests"
  Trigger build
  Add print to tests
  ...

# Conflicts:
#	Source/render/GroupRenderer.swift
#	Source/svg/SVGParser.swift
#	Source/views/MacawView.swift
@ystrot ystrot modified the milestones: 0.9.6, 0.9.7 Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants