britannio / in_app_review

A Flutter plugin for showing the In-App Review/System Rating pop up on Android, IOS, and MacOS. It makes it easy for users to rate your app.
327 stars 82 forks source link

Unable to build on iOS , flutter version 3.5.4, xCode 15.7 #137

Closed duc0 closed 3 weeks ago

duc0 commented 4 weeks ago

Flutter version 3.5.4, xCode 15.7 Macbook M2, 2022

Read testing guidelines

Repro step: From the Flutter sample project, add the in_app_review package (flutter pub add in_app_review) Build on iOS simulator.

Received the following errors:

Error (Xcode): double-quoted include "InAppReviewPlugin.h" in framework header, expected angle-bracketed instead /Users/U/Development/Space64/test_bug_oct29/ios/Pods/Target%20Support%20Files/in_app_review/in_app_review-umbrella.h:12:8

Error (Xcode): 'Flutter/Flutter.h' file not found /Users/U/.pub-cache/hosted/pub.dev/in_app_review-2.0.9/ios/Classes/InAppReviewPlugin.h:0:8

Error (Xcode): (fatal) could not build module 'in_app_review' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c++_arm64-apple-ios12.0-simulator_gnu++20/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c++_arm64-apple-ios12.0-simulator_gnu++20/Test/Test.mm:0:8

Error (Xcode): (fatal) could not build module 'in_app_review' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c++_x86_64-apple-ios12.0-simulator_gnu++20/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c++_x86_64-apple-ios12.0-simulator_gnu++20/Test/Test.mm:0:8

Error (Xcode): (fatal) could not build module 'in_app_review' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c_arm64-apple-ios12.0-simulator_gnu17/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c_arm64-apple-ios12.0-simulator_gnu17/Test/Test.m:0:8

Error (Xcode): (fatal) could not build module 'in_app_review' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c_x86_64-apple-ios12.0-simulator_gnu17/Test/Test.framework/Headers/Test.h:0:8

Error (Xcode): (fatal) could not build module 'Test' /Users/U/Library/Developer/Xcode/DerivedData/Runner-dxhrsfxrtgauhegulchxkouxcuub/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/in_app_review.build/VerifyModule/in_app_review_objective-c_x86_64-apple-ios12.0-simulator_gnu17/Test/Test.m:0:8

duc0 commented 3 weeks ago

It turns out to be a problem with cocoapods. Reinstalled cocoapods fixed the issue.