Maysam
Maysam

Reputation: 7367

Unable to run the app on iOS Simulator due to NSPOSIXErrorDomain error

When I'm trying to run my app (a Flutter app) on the iOS simulator I get the following error:

Unable to install /[Path]/build/ios/iphonesimulator/Runner.app on 3597CFAA-C3AA-444E-94A9-826F707ED584. This is sometimes caused by a malformed plist file: ProcessException: Process exited abnormally: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=63): copyfile of file:///[Path]/build/ios/iphonesimulator/Runner.app/ to file:///[AnotherPath]/Library/Developer/CoreSimulator/Devices/3597CFAA-C3AA-444E-94A9-826F707ED584/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoordinationd/Library/InstallCoordination/PromiseStaging/ED6E3554-BEDD-45EF-B787-DB32CB50AADB/Runner.app failed: File name too long Unhandled error domain NSPOSIXErrorDomain, code 63

I have tried cleaning DataDriven folder, Clean Build Folder from XCdoe, regenerating the workspace file, nothing works but I can run the app on the device.

Is there any solution to this problem?

Upvotes: 2

Views: 2831

Answers (1)

yusuf
yusuf

Reputation: 71

  • delete → Runner.xcworkspace → xcuserdata folder
  • delete → Pods folder on inside ios folder
  • delete → ios → flutter → Flutter.podspec
  • run flutter clean
  • flutter run

Upvotes: 4

Related Questions