Fritz Lim
Fritz Lim

Reputation: 2189

"resource fork, Finder information, or similar detritus not allowed" error when deploying a Xamarin.Forms app to a physical iOS device

When deploying a Xamarin.Forms app to a physical iOS device running iOS 12.1.4, I encounter this error: resource fork, Finder information, or similar detritus not allowed

Thus the app cannot be deployed onto the device.

Upvotes: 4

Views: 7320

Answers (3)

sapna
sapna

Reputation: 1

I had this error, I had my project in icloud directory, I have just change project directory by copy and paste project to system directory. Then run code, if it gives same error then run these commands in project directory terminal:- xattr -lr , xattr -cr then clean and rebuild project. it is done.

Upvotes: 0

Abdul Gani
Abdul Gani

Reputation: 689

Check if any image or resource files without extension. One of the possible cause is, in any of the iOS project in the visual studio have image resources without extension (Ex: sample instead of sample.png)

After correcting the file extension, clean and build.

Upvotes: 1

Fritz Lim
Fritz Lim

Reputation: 2189

Although this question already has answers at

I'd like to add in the specific steps for Visual Studio 2019 (Preview) that have worked for me consistently on Mac OS:

  1. Delete all the bin and obj folders (from all your projects, e.g. from the common folder, and from each platform-specific folder).
  2. Close the solution and open it again (so that the packages get restored).
  3. Do a Build -> Rebuild All. You don't need to connect the physical device to your computer yet.
  4. In the Solution Explorer, go to the iOS project root folder (right-click on the iOS project in Visual Studio's Solution Explorer, then select Tools -> Open in Terminal) and execute find . | xargs -0 xattr -c.
  5. Connect the iOS device to your computer and run the build so that it gets installed on the device.

Upvotes: 6

Related Questions