You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
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
The text was updated successfully, but these errors were encountered: