question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Catalyst for ios platform ?

See original GitHub issue

Hi Has anyone tried building an ios project using ‘Catalyst’ for macOS Catalina ?

If I try enabling that build, I get:

CDVURLProtocol.m:20:9: AssetsLibrary is deprecated and is not available when building for Mac Catalyst. Consider migrating to Photos instead, or use #if !TARGET_OS_MACCATALYST to conditionally import this framework, first importing TargetConditionals.h if necessary.

Seems like the AssetsLibrary has been deprecated, and has been fixed in ionic, are you guys planning on removing it too ? https://github.com/ionic-team/capacitor/pull/1825

Going forward, should Catalyst be used or the ‘osx’ platform ?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:30 (19 by maintainers)

github_iconTop GitHub Comments

3reactions
Leandropintogitcommented, Apr 17, 2021

So just tested Catalyst for on a new ‘hello’ cordova project, using ios@6.1.0 Project builds (and runs on iOS), but after enabling Catalyst I get this codesign error: unsealed contents present in the bundle root Command CodeSign failed with a nonzero exit code Has someone gotten a Catalyst ios build to work ? Update: just saw the post from dpogue above, unfortunately I can’t get around the codesign issue, can you share some more detail where you copied the config.xml and www directory ? (not familiar with codesign)

CodeSign error means your app isn’t signed properly, you need to select a development team in the target root node. The build fails for another reason

I unfortunately have this same error. Cannot find a way around it. The app is set to automatically sign and a team is selected from both dropdowns.

Hy guys

With just a few changes, it is possible to generate a simple cordova app supporting catalyst without changing ios behavior In the script copy-www-build-step.sh, change the variable DST_DIR based on build platform

DST_DIR="$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME"
if [[ "$PLATFORM" == "macosx" ]]; then
  //In case build ios directories exists
  rm -rf "$DST_DIR_WWW"
  rm -f  "$DST_DIR/config.xml"

  DST_DIR="$BUILT_PRODUCTS_DIR/$FULL_PRODUCT_NAME/Contents/Resources"
fi
2reactions
dpoguecommented, Oct 23, 2019

Going forward, should Catalyst be used or the ‘osx’ platform ?

Once it works, I think we’d want to encourage using Catalyst for macOS to avoid needing to maintain a similar-but-separate cordova-osx platform.

See also https://github.com/apache/cordova-ios/issues/551.

We’d definitely like to address this, but it’s not clear if that code is actually being used (it probably is, by someone, somewhere) and whether removing it (like Ionic did) is the right step.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac Catalyst Overview - Apple Developer
Mac apps built with Mac Catalyst share code with your iPad apps, and you can add more features just for Mac. The latest...
Read more >
Project Catalyst: What is it, Release Date, Features, Apps, etc
Project Catalyst is an Apple code name for a project that will enable developers to design a single application that runs on iOS...
Read more >
How To Run iOS Apps On Mac Using Project Catalyst - MacPaw
How to start with Project Catalyst · Open your iOS app project in Xcode. · Go to project settings and check the Mac...
Read more >
The Missing Guide for Mac Catalyst Apps - Craft
Mac Catalyst is a technology that enables you to run iOS code on macOS - or in other words, with a few clicks,...
Read more >
Mac Catalyst | Updates, Features, Benefits - AppleInsider
Xcode is a development environment designed specifically for Mac to build apps for all Apple-based devices. Within a single workspace window, developers can ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found