shyandsy / cipher2

a flutter plugin for AES encryption and decryption
GNU General Public License v3.0
43 stars 40 forks source link

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

Open oxlbaga opened 5 years ago

oxlbaga commented 5 years ago

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)

shyandsy commented 5 years ago

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?