I’ve tried multiple times to run my iOS app on Cursor, but every attempt has failed due to compilation issues.
Now, I’ve hit a major roadblock—Cursor cannot recognize the following:
import GoogleMaps
Cursor suggested these troubleshooting steps:
- Close both Xcode and Cursor completely.
- Run the following commands in Terminal:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/CocoaPods/*
rm -rf Pods/
rm -rf Podfile.lock
pod cache clean --all
pod install --repo-update
- After the installation completes:
- Reopen Cursor.
- Open the
.xcworkspace
file (not.xcodeproj
). - Clean the build folder (Xcode → Product → Clean Build Folder).
- Try building the project again.
Despite following these steps, the error persists. Any ideas on how to fix this?