Search code examples
nativescript

Nativescript issue with iOS14 and Xcode12


Using the CLI as always but after updating my iPhone to iOS14 I have got this error:

** EXPORT SUCCEEDED **

Project successfully built.

Unable to apply changes on device: XXXXXXXXX. Error is: No .ipa found in /Users/XXXXXXXX/XXXXXXXX/platforms/ios/build/Debug-iphoneos directory..

But the file is located there. Also using Xcode 12 doesn't help...Even the LaunchScreen is black...

Would anyone suggest if it can be fixed any how? Or it is a Nativescript bug and we have to wait when they will update it?

Also there is a warning on: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99. (in target 'MDFInternationalization' from project 'Pods')


Solution

  • To fix the warning around IPHONEOS_DEPLOYMENT_TARGET you may need to add this to your Podfile in app/App_Resources/iOS/Podfile.

    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
          config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = 'NO'
        end
      end
    end
    

    https://timleland.com/how-to-fix-nativescript-issue-with-ios14-and-xcode-12/