Open josephfeleke opened 3 years ago
Do you have any customizations in your Podfile
? Did your build do a pod install
beforehand?
I've found that usually these come down to some CocoaPods screwups, and can usually be fixed by one of:
Podfile.lock
and rerun CocoaPodsflutter clean
One of these usually fix similar errors for me, though I haven't seen your specific issue in my app.
Ok thank you let me try that and ill let you know.
I had the same issue. It disappeared after updating to xcode 12
after adding admob_flutter in pubspec.yaml my app doesn't run and i get this error
`Launching lib/main.dart on iPhone 8 in debug mode... Running Xcode build... Xcode build done. 114.5s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED
Xcode's output: ↳ 8 warnings generated. /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_image-0.0.5+2/ios/Classes/FlutterNativeImagePlugin.m:77:19: warning: unused variable 'fileName' [-Wunused-variable] NSString fileName = [[fileArgument lastPathComponent] stringByDeletingPathExtension]; ^ 1 warning generated. /Users/josephfeleke/Documents/Zaremart_1.7/ios/Pods/libwebp/src/enc/backward_references_enc.c:663:12: warning: variable 'best_offset' may be uninitialized when used here [-Wconditional-uninitialized] (best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length; ^
~~/Users/josephfeleke/Documents/Zaremart_1.7/ios/Pods/libwebp/src/enc/backward_references_enc.c:595:20: note: initialize the variable 'best_offset' to silence this warning int best_offset; ^ = 0 1 warning generated. /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataTIFF.m:35:65: warning: 'kCGImagePropertyTIFFTileWidth' is only available on iOS 9.0 or newer [-Wunguarded-availability] SYStringSel(tileWidth): (NSString )kCGImagePropertyTIFFTileWidth, ^~~~~~~~~ In module 'ImageIO' imported from /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataTIFF.m:10: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h:147:34: note: 'kCGImagePropertyTIFFTileWidth' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0 IMAGEIO_EXTERN const CFStringRef kCGImagePropertyTIFFTileWidth IMAGEIO_AVAILABLE_STARTING(10.11, 9.0); ^ /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataTIFF.m:35:65: note: enclose 'kCGImagePropertyTIFFTileWidth' in an @available check to silence this warning SYStringSel(tileWidth): (NSString )kCGImagePropertyTIFFTileWidth, ^~~~~~~~~ /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataTIFF.m:36:65: warning: 'kCGImagePropertyTIFFTileLength' is only available on iOS 9.0 or newer [-Wunguarded-availability] SYStringSel(tileLength): (NSString )kCGImagePropertyTIFFTileLength, ^~~~~~~~~~ In module 'ImageIO' imported from /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataTIFF.m:10: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h:148:34: note: 'kCGImagePropertyTIFFTileLength' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0 IMAGEIO_EXTERN const CFStringRef kCGImagePropertyTIFFTileLength IMAGEIO_AVAILABLE_STARTING(10.11, 9.0); ^ /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataTIFF.m:36:65: note: enclose 'kCGImagePropertyTIFFTileLength' in an @available check to silence this warning SYStringSel(tileLength): (NSString )kCGImagePropertyTIFFTileLength, ^~~~~~~~~~ 2 warnings generated. /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataPNG.m:32:61: warning: 'kCGImagePropertyPNGCompressionFilter' is only available on iOS 9.0 or newer [-Wunguarded-availability] SYStringSel(compressionFilter): (NSString )kCGImagePropertyPNGCompressionFilter, ^~~~~~~~In module 'ImageIO' imported from /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataPNG.h:10: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h:764:34: note: 'kCGImagePropertyPNGCompressionFilter' has been marked as being introduced in iOS 9.0 here, but the deployment target is iOS 8.0.0 IMAGEIO_EXTERN const CFStringRef kCGImagePropertyPNGCompressionFilter IMAGEIO_AVAILABLE_STARTING(10.11, 9.0); ^ /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataPNG.m:32:61: note: enclose 'kCGImagePropertyPNGCompressionFilter' in an @available check to silence this warning SYStringSel(compressionFilter): (NSString *)kCGImagePropertyPNGCompressionFilter, ^~~~~~~~1 warning generated. /Users/josephfeleke/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-0.7.0/ios/Classes/SYPictureMetadata/SYMetadataExif.m:9:9: warning: non-portable path to file '"SYMetadataExif.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]import "SYMetadataEXIF.h"
Could not build the application for the simulator. Error launching application on iPhone 8. `