anitha-suraj opened a new issue #389:
URL: https://github.com/apache/cordova-plugin-file/issues/389


   # 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](https://user-images.githubusercontent.com/64072985/79859322-7369f380-83ee-11ea-8b9e-489bfa4501a3.png)
   
   
   ### 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 ([email protected])
   cordova-ios - 5.0.1
   macOS Catalina
   Xcode 11.4 
   iOS 13.4
   
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to