Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

InputMask does not specify a Swift version #3

@MetalHeadOwl

Description

@MetalHeadOwl

If the demo apps cannot help and there is no issue for your problem, tell us about it

On a brand new app, with nothing but the core modules and input mask, I can't build the app for iOS since when the CLI tries to check the Pod for the input mask plugin it fails with the following error.

`[!] Unable to determine Swift version for the following pods:

  • InputMask' does not specify a Swift version and none of the targets (InputMaskTest) integrating it have the SWIFT_VERSIONattribute set. Please contact the author or set theSWIFT_VERSION attribute in at least one of the targets that integrate this pod.

The podfile looks like this (I saw the other issue about the non-existent location and have the file on the mentioned folder):


target "InputMaskTest" do
`# Begin Podfile - /Users/hb/Projects/ProjetosTestes/InputMaskTest/node_modules/nativescript-input-mask/platforms/ios/Podfile
pod 'InputMask', :path => '~/Projects/input-mask-ios'

def post_installnativescript_input_mask_0 (installer)
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
    end
  end
end
`# End Podfile

post_install do |installer|
  post_installnativescript_input_mask_0 installer
end
end

Which platform(s) does your issue occur on?

  • iOS

Please, provide the following version numbers that your issue occurs with:

  • CLI: 5.1.1
  • Runtime(s): 5.1.2
  • Plugin(s): "nativescript-input-mask": "^1.0.4",

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.
Through the CLI

  1. new create InputMaskTest
  2. npm install
  3. tns plugin add nativescript-input-mask
  4. tns build ios

Is there any code involved?

No, the project doesn't build at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions