My App has was working and was going to release for Android and iOS, but few days ago after I update to Flutter 2.0 and XCode 12.5 "flutter run" fails in iOS only.
I downgraded XCode to 12.4 also still not working.
Development: Shivam Srivastava (67UX3WD5D5)"
Running pod install... 7.8s
Running Xcode build...
Xcode build done. 88.3s
Failed to build iOS app
Error output from Xcode build:
↳
2021-06-11 16:26:19.761 xcodebuild[968:9748]
CFURLRequestSetHTTPCookieStorageAcceptPolicy_block_invoke: no longer
implemented and should not be called
** BUILD FAILED **
Xcode's output:
↳
lib/widgets/PdfRender.dart:14:8: Error: Error when reading
'../../../flutter/.pub-cache/hosted/pub.dartlang.org/pdf_render-1.0.11/lib/p
df_render_widgets2.dart': No such file or directory
import 'package:pdf_render/pdf_render_widgets2.dart';
2
Answers
run pod update that worked for me there are packages that need to be updated.
the same thing happened my app was not building i run flutter clean then flutter pub get then pod update that solved it for me.
My pod file looks like this and works perfectly