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

Issue with version 6.0.2 when using Xcode 11.4 and iOS 13.4 #389

Closed
2 of 3 tasks
anitha-suraj opened this issue Apr 21, 2020 · 2 comments
Closed
2 of 3 tasks

Issue with version 6.0.2 when using Xcode 11.4 and iOS 13.4 #389

anitha-suraj opened this issue Apr 21, 2020 · 2 comments

Comments

@anitha-suraj
Copy link

Bug Report

We were using cordova-plugin-file version 6.0.1 earlier.
Currently we have upgraded to version 6.0.2 in our mobile application.

When we sign our app on macOS Catalina, using Xcode 11.4 and iOS 13.4, the build fails with a Lexical or Preprocessor issue

Problem

Error messages:
.../ios/CordovaLib/Classes/Public/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.

.../ios/CordovaLib/Classes/Public/CDVURLProtocol.m:20:9: 'AssetsLibrary/ALAsset.h' file not found

We know that this issue is caused by the cordova-plugin-file version because when we downgrade to 6.0.1 version, then the build is succeeding.

What is expected to happen?

The build to succeed.

What does actually happen?

Build fails.

Information

ios-build-issue

Command or Code

ios build on xcode

Environment, Platform, Device

macOS Catalina, using Xcode 11.4 and iOS 13.4

Version information

Cordova CLI - 9.0.0 (cordova-lib@9.0.1)
cordova-ios - 5.0.1
macOS Catalina
Xcode 11.4
iOS 13.4

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@anitha-suraj
Copy link
Author

Please note that the issue occurs when we try to sign and upload our app to app store.
'cordoa build ios' will succeed.

@erisu
Copy link
Member

erisu commented Apr 22, 2020

The error message you are showing in the ticket description:

Error messages:
.../ios/CordovaLib/Classes/Public/CDVURLProtocol.m:20:9: AssetsLibrary is deprecated and is not available when building for Mac Catalyst.

is coming from the cordova-ios platform and is not related to this plugin cordova-plugin-file.

Additionally, the CDVURLProtocol file has been removed from the master branch. The next Cordova iOS major release (6.x) will not have the CDVURLProtocol and AssetsLibrary.

There is no given ETA on release date as of yet.

apache/cordova-ios#783

@erisu erisu closed this as completed Apr 22, 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

No branches or pull requests

2 participants