alpha-wallet-ios icon indicating copy to clipboard operation
alpha-wallet-ios copied to clipboard

Warnings about missing imports in Xcode 14.3

Open eviltofu opened this issue 2 years ago • 4 comments

AlphaWallet/Common/Services/MediaContentNetworking.swift:56:96 Cannot use type alias 'Response' here; 'AlphaWalletOpenSea' was not imported by this file

AlphaWallet/Swap/Swap/SwapTokensCoordinator.swift:352:63 Cannot use enum 'Address' here; 'AlphaWalletAddress' was not imported by this file
AlphaWallet/Swap/Swap/SwapTokensCoordinator.swift:352:110 Cannot use enum 'Address' here; 'AlphaWalletAddress' was not imported by this file
AlphaWallet/Swap/Swap/SwapTokensCoordinator.swift:352:140 Cannot use enum 'Address' here; 'AlphaWalletAddress' was not imported by this file

eviltofu avatar Apr 11 '23 01:04 eviltofu

AlphaWallet/Common/Services/MediaContentNetworking.swift:56:96 Cannot use type alias 'Response' here; 'AlphaWalletOpenSea' was not imported by this file

Interesting, the same typealias is defined in AlphaWalletFoundation: typealias Response = (data: Data, response: HTTPURLResponse). Maybe it's an Xcode 14.3 bug?

hboon avatar Apr 11 '23 02:04 hboon

AlphaWallet/Swap/Swap/SwapTokensCoordinator.swift:352:63 Cannot use enum 'Address' here; 'AlphaWalletAddress' was not imported by this file AlphaWallet/Swap/Swap/SwapTokensCoordinator.swift:352:110 Cannot use enum 'Address' here; 'AlphaWalletAddress' was not imported by this file AlphaWallet/Swap/Swap/SwapTokensCoordinator.swift:352:140 Cannot use enum 'Address' here; 'AlphaWalletAddress' was not imported by this file

And this is defined in AlphaWalletFoundation: public typealias AlphaWallet = AlphaWalletAddress.AlphaWallet

hboon avatar Apr 11 '23 02:04 hboon

Skip this until 14.3.x is released?

eviltofu avatar Apr 11 '23 03:04 eviltofu

Yeah.

hboon avatar Apr 11 '23 03:04 hboon