cipher2 icon indicating copy to clipboard operation
cipher2 copied to clipboard

ios运行example项目error: unexpected platform condition (expected 'os', 'arch', or 'swift')...

Open oxlbaga opened this issue 6 years ago • 1 comments

Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ === BUILD TARGET CryptoSwift OF PROJECT Pods WITH CONFIGURATION Debug === /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:19:5: error: unexpected platform condition (expected 'os', 'arch', or 'swift') #if canImport(Darwin) ^ /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:22:8: error: no such module 'Glibc' import Glibc ^ === BUILD TARGET CryptoSwift OF PROJECT Pods WITH CONFIGURATION Debug === /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:19:5: error: unexpected platform condition (expected 'os', 'arch', or 'swift') #if canImport(Darwin) ^ /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:22:8: error: no such module 'Glibc' import Glibc ^ === BUILD TARGET CryptoSwift OF PROJECT Pods WITH CONFIGURATION Debug === /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:19:5: error: unexpected platform condition (expected 'os', 'arch', or 'swift') #if canImport(Darwin) ^ /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:22:8: error: no such module 'Glibc' import Glibc ^ === BUILD TARGET CryptoSwift OF PROJECT Pods WITH CONFIGURATION Debug === /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:19:5: error: unexpected platform condition (expected 'os', 'arch', or 'swift') #if canImport(Darwin) ^ /Users/ye/Downloads/cipher2-master/example/ios/Pods/CryptoSwift/Sources/CryptoSwift/BlockMode/CCM.swift:22:8: error: no such module 'Glibc' import Glibc ^ Could not build the application for the simulator. Error launching application on iPhone X. Exited (sigterm)

oxlbaga avatar May 15 '19 06:05 oxlbaga

first of all, try to run flutter clean to remove the bad cache secondly, could u show me which version of flutter u are using?

shyandsy avatar Jul 15 '19 01:07 shyandsy