karantanwar / unique_identifier

A flutter plugin for getting the unique serial number for android and identifierForVendor in ios
MIT License
9 stars 40 forks source link

iOS error #1

Closed cbfischer closed 1 year ago

cbfischer commented 5 years ago

Hi,

I'm trying to use the plugin and the following error is occurring:

karantanwar commented 5 years ago

Thanks for raising the issue... i'll fix it right away.... and sorry for the late reply.... i thought no-one was using this plugin except me

tkleijkers commented 5 years ago

Is it already fixed?

kraxarn commented 5 years ago

Adding ENV['SWIFT_VERSION'] = '5.0' to the podilfe solves that error, but now instead it complains about the missing life unique_identifier-Swift-h. Following the instructions from here does work (using Swift 5.0 instead of 3.2), but this plugin really needs to be rewritten in Objective-C.

joknjokn commented 5 years ago

No news about this bug?

vhbmsp commented 5 years ago

@karantanwar FYI: It is still broken.

paulobreim commented 5 years ago

This problem start when Apple release the last xcode.

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

[!] Automatically assigning platform iOS with version 8.0 on target Runner because no platform was specified. Please specify a platform for this target in your Podfile. See https://guides.cocoapods.org/syntax/podfile.html#platform.

bytelyus commented 5 years ago

fixed mine by manually editing 'anyway' 'unique_identifier.podspec' file under 'Flutter Plugins' folder > unique_identifier folder > ios folder ...

Just added this line before 'end' of file

s.swift_version = '4.0'

...

Update pluging, please.. many people (2 at least) over here using it!! ...

Note that phones with dual sim may change the unique_identifier when using one sim or another!

<3 Flutter!