mboeddeker / disk_space

MIT License
15 stars 62 forks source link

Build errors on IOS? #9

Closed abhlabs closed 2 years ago

abhlabs commented 2 years ago

My app builds and runs without errors for Android, but the build fails for IOS, targeting IOS 12 / iPhone 13. The build cites numerous warnings in build, but only one error:

`...flutter/.pub-cache/hosted/pub.dartlang.org/disk_space-0.2.1/ios/Classes/DiskSpacePlugin.m:2:9: fatal error: 'disk_space/disk_space-Swift.h' file not found

import <disk_space/disk_space-Swift.h>`

Removing all references to disk_space package lets the app build and run without errors on iPhone 13 simulator.

It's very possible I've got something set wrong in my xcode project -- I'm very new to xcode (and feeling a little intimidated by the sheer number of settings). Is this an issue in the disk_space package, or is there something wrong with my project settings?

abhlabs commented 2 years ago

I was able to resolve the build errors. If anyone else encounters this problem, read through this SO post: Build errors on IOS and look for a comment made in response to the question from Ryan Cocuzzo suggesting running Xcode under Rosetta.

zhuwei commented 11 months ago

This method won't solve the problem..