Coder Social home page Coder Social logo

Comments (3)

boring-km avatar boring-km commented on August 13, 2024 2

@roiskhoiron just change file name

get_mac.podspec -> mac_address.podspec

image

But this plugin isn't implemented for iOS

from mac_address.

vricosti avatar vricosti commented on August 13, 2024

Yes same issue for me and I could go a bit further by doing this:

~/Dev/flutter-2.10.5/.pub-cache/hosted/pub.dartlang.org/mac_address-1.0.0/ios$ cp get_mac.podspec mac_address.podspec

And then I had the other build issue describe in another ticket:

    Xcode build done.                                           17.1s
Failed to build iOS app
Error output from Xcode build:
↳
    2022-07-07 16:09:40.640 xcodebuild[94461:20534719] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-07-07 16:09:40.641 xcodebuild[94461:20534719] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
    	/var/folders/9q/czts5yc146bdqhmndsy8xqgc0000gn/T/flutter_tools.Pw5cag/flutter_ios_build_temp_dirSJCIIA/temporary_xcresult_bundle
/Users/vricosti/Dev/flutter-2.10.5/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.3.0/ios/Classes/strategies/BluetoothPermissionStrategy.m:42:39: warning: 'CBCentralManagerStatePoweredOn' is deprecated: first deprecated in iOS 10.0 - Use CBManagerState instead [-Wdeprecated-declarations]
        return [_centralManager state] == CBCentralManagerStatePoweredOn ? ServiceStatusEnabled : ServiceStatusDisabled;
                                          ^
In module 'CoreBluetooth' imported from /Users/vricosti/Dev/flutter-2.10.5/.pub-cache/hosted/pub.dartlang.org/permission_handler-8.3.0/ios/Classes/strategies/BluetoothPermissionStrategy.h:13:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h:35:28: note: 'CBCentralManagerState' has been explicitly marked deprecated here
    typedef NS_ENUM(NSInteger, CBCentralManagerState) {
                               ^
    1 warning generated.
/Users/vricosti/Dev/flutter-2.10.5/.pub-cache/hosted/pub.dartlang.org/disk_space-0.2.1/ios/Classes/SwiftDiskSpacePlugin.swift:61:30: warning: left side of nil coalescing operator '??' has non-optional type 'Int64', so the right side is never used
                    return space ?? 0
                           ~~~~~ ^~~~
/Users/vricosti/Dev/flutter-2.10.5/.pub-cache/hosted/pub.dartlang.org/disk_space-0.2.1/ios/Classes/SwiftDiskSpacePlugin.swift:82:30: warning: left side of nil coalescing operator '??' has non-optional type 'Int64', so the right side is never used
                    return space ?? 0
                           ~~~~~ ^~~~
    Command CompileSwiftSources failed with a nonzero exit code
    /Users/vricosti/Projects/Ballachia/ballachia_mobileapp/ios/Pods/Reachability/Reachability.m:465:63: warning: cast to smaller integer type 'unsigned int' from 'Reachability *' [-Wpointer-to-int-cast]
                                 NSStringFromClass([self class]), (unsigned int) self, [self currentReachabilityFlags]];
                                                                  ^~~~~~~~~~~~~~~~~~~
    1 warning generated.
    Command CompileSwiftSources failed with a nonzero exit code
/Users/vricosti/Dev/flutter-2.10.5/.pub-cache/hosted/pub.dartlang.org/mac_address-1.0.0/ios/Classes/GetMacPlugin.m:8:9: fatal error: 'get_mac-Swift.h' file not found
    #import "get_mac-Swift.h"
            ^~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/vricosti/Projects/Ballachia/ballachia_mobileapp/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'Reachability' from project 'Pods')
    /Users/vricosti/Projects/Ballachia/ballachia_mobileapp/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'Protobuf' from project 'Pods')
    /Users/vricosti/Projects/Ballachia/ballachia_mobileapp/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'MTBBarcodeScanner' from project 'Pods')
    /Users/vricosti/Projects/Ballachia/ballachia_mobileapp/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'AppAuth' from project 'Pods')
    Result bundle written to path:
    	/var/folders/9q/czts5yc146bdqhmndsy8xqgc0000gn/T/flutter_tools.Pw5cag/flutter_ios_build_temp_dirSJCIIA/temporary_xcresult_bundle
Could not build the precompiled application for the device.
Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code
Lexical or Preprocessor Issue (Xcode): 'get_mac-Swift.h' file not found
/Users/vricosti/Dev/flutter-2.10.5/.pub-cache/hosted/pub.dartlang.org/mac_address-1.0.0/ios/Classes/GetMacPlugin.m:7:8

from mac_address.

vricosti avatar vricosti commented on August 13, 2024

From this blog, it seems possible (even a bit tacky) to get it on iOS:
https://github.com/spanagiot/iOS-Mac-Address/blob/master/GetMACAddress/ContentView.swift

from mac_address.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.