Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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.

like image 916
Fritz Lim Avatar asked Oct 26 '25 10:10

Fritz Lim


2 Answers

Although this question already has answers at

  • resource fork, Finder information, or similar detritus not allowed Xcode 8 error?
  • Code Signing in iOS 10 Resource fork, Finder information, or similar detritus not allowed
  • Code Sign Error in macOS High Sierra Xcode - resource fork, Finder information, or similar detritus not allowed
  • Code Signing error in XCode 8.2.1

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.
like image 188
Fritz Lim Avatar answered Oct 28 '25 22:10

Fritz Lim


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.

like image 32
Abdul Gani Avatar answered Oct 29 '25 00:10

Abdul Gani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!