iOS Development

Unable to publish iOS Maui construct on iOS gadget on account of error when code signing

Spread the love


We am working with migrating our Xamarin tasks to Maui. We’re capable of construct the challenge for each android and iOS platforms, but it surely solely debugs on gadget for the android.

We have put in .NET 8, Xcode, vs code and android studio on a Mac.

The issue is that it’s not capable of signal the code for iOS.

    MSBuild model 17.8.3+195e7f5a3 for .NET
  Figuring out tasks to revive...
  All tasks are up-to-date for restore.
  Detected signing identification:
          
    Code Signing Key: "Apple Improvement: Daniel Raniel (BXAUSAYH2W)" (AAF63DB7E4325D6388F6722C8CD11EA63A46E16D)
    Provisioning Profile: "Maui App Profile" (73af5ef6-7976-4faa-b148-c0c115501a27)
    Bundle Id: no.tellu.mauiapp1
    App Id: BM2KQ6ED8Q.no.tellu.mauiapp1
  MauiApp1 -> /Customers/aacr3322/Paperwork/Workspace/testmaui/testmaui/MauiApp1/bin/Debug/net8.0-ios/ios-arm64/MauiApp1.dll
  Optimizing assemblies for measurement might change the conduct of the app. Make sure to check after publishing. See: https://aka.ms/dotnet-illink
  Instrument /usr/bin/codesign execution completed (exit code = 1).
          
  file with invalid hooked up information: Disallowed xattr com.apple.FinderInfo discovered on /Customers/aacr3322/Paperwork/Workspace/testmaui/testmaui/MauiApp1/bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app
  
  /Customers/aacr3322/Paperwork/Workspace/testmaui/testmaui/MauiApp1/bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app: useful resource fork, Finder info, or comparable detritus not allowed
  
/usr/native/share/dotnet/packs/Microsoft.iOS.Sdk/17.0.8490/instruments/msbuild/iOS/Xamarin.Shared.targets(2256,3): error : /usr/bin/codesign exited with code 1: [/Users/aacr3322/Documents/Workspace/testmaui/testmaui/MauiApp1/MauiApp1.csproj::TargetFramework=net8.0-ios]
/usr/native/share/dotnet/packs/Microsoft.iOS.Sdk/17.0.8490/instruments/msbuild/iOS/Xamarin.Shared.targets(2256,3): error : /Customers/aacr3322/Paperwork/Workspace/testmaui/testmaui/MauiApp1/bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app: useful resource fork, Finder info, or comparable detritus not allowed [/Users/aacr3322/Documents/Workspace/testmaui/testmaui/MauiApp1/MauiApp1.csproj::TargetFramework=net8.0-ios]
/usr/native/share/dotnet/packs/Microsoft.iOS.Sdk/17.0.8490/instruments/msbuild/iOS/Xamarin.Shared.targets(2256,3): error : Did not codesign '/Customers/aacr3322/Paperwork/Workspace/testmaui/testmaui/MauiApp1/bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app': /Customers/aacr3322/Paperwork/Workspace/testmaui/testmaui/MauiApp1/bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app: useful resource fork, Finder info, or comparable detritus not allowed [/Users/aacr3322/Documents/Workspace/testmaui/testmaui/MauiApp1/MauiApp1.csproj::TargetFramework=net8.0-ios]
/usr/native/share/dotnet/packs/Microsoft.iOS.Sdk/17.0.8490/instruments/msbuild/iOS/Xamarin.Shared.targets(2256,3): error :  [/Users/aacr3322/Documents/Workspace/testmaui/testmaui/MauiApp1/MauiApp1.csproj::TargetFramework=net8.0-ios]
/usr/native/share/dotnet/packs/Microsoft.iOS.Sdk/17.0.8490/instruments/msbuild/iOS/Xamarin.Shared.targets(2256,3): error :          [/Users/aacr3322/Documents/Workspace/testmaui/testmaui/MauiApp1/MauiApp1.csproj::TargetFramework=net8.0-ios]

Construct FAILED.

I’ve tried constructing with dotnet publish … from the terminal however I get the identical error.

I’ve seen that different folks which are battling this in Xamarin have been utilizing the xattr within the command line to unravel the difficulty.

After I do

$ xattr -lr .

it lists a variety of information, which will get smaller by the proposed answer

$ xattr -cr .

Nevertheless, some information nonetheless stays within the record when doing -lr after -cr

MacBook-Professional MauiApp1 % xattr -lr .
./bin 2/Debug/net8.0-ios: com.apple.fileprovider.dir#N: 1
./obj/Debug/net8.0-ios/ios-arm64/ibtool/MauiSplash.storyboardc: com.apple.FinderInfo: 
./obj/Debug/net8.0-ios/ios-arm64/ibtool/MauiSplash.storyboardc: com.apple.fileprovider.fpfs#P: 
./obj/Debug/net8.0-ios/ios-arm64/strip/MauiApp1.app: com.apple.FinderInfo: 
./obj/Debug/net8.0-ios/ios-arm64/strip/MauiApp1.app: com.apple.fileprovider.fpfs#P: 
./obj/Debug/net8.0-ios/ios-arm64/resizetizer/r/Belongings.xcassets/appicon.appiconset: com.apple.fileprovider.dir#N: 1
./obj/Debug/net8.0-ios/ios-arm64/resizetizer/r/Belongings.xcassets: com.apple.fileprovider.dir#N: 1
./obj/Debug/net8.0-ios/ios-arm64/actool/cloned-assets/Belongings.xcassets/appicon.appiconset: com.apple.fileprovider.dir#N: 1
./obj/Debug/net8.0-ios/ios-arm64/actool/cloned-assets/Belongings.xcassets: com.apple.fileprovider.dir#N: 1
./obj/Debug/net8.0-ios: com.apple.fileprovider.dir#N: 1
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app/Settings.bundle: com.apple.FinderInfo: 
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app/Settings.bundle: com.apple.fileprovider.fpfs#P: 
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app/MauiSplash.storyboardc: com.apple.FinderInfo: 
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app/MauiSplash.storyboardc: com.apple.fileprovider.fpfs#P: 
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app: com.apple.FinderInfo: 
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app: com.apple.fileprovider.fpfs#P: 
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app.dSYM: com.apple.FinderInfo: 
./bin/Debug/net8.0-ios/ios-arm64/MauiApp1.app.dSYM: com.apple.fileprovider.fpfs#P: 
./bin/Debug/net8.0-ios: com.apple.fileprovider.dir#N: 1

Any ideas on what the difficulty could also be?

Leave a Reply

Your email address will not be published. Required fields are marked *