简体   繁体   中英

Codesign error in Xamarin Studio 5.9.7 (build 9) and Xamarin.iOS 9.0.1.18

I have upgraded Xamarin Studio to the latest version in the beta channel. When I try to run the app I get the following error:

Signing application
codesign -v --force --sign "[hex]" --entitlements "/Users/[username]/devel/git/[app]/bin/iPhone/Debug/[app].xcent" "/Users/[username]/devel/git/[app]/bin/iPhone/Debug/[app].app"
/Users/[username]/devel/git/[app]/bin/iPhone/Debug/[app].app: invalid resource specification rule(s)
codesign exited with code 1

Why could this be? And how can I get around it?

  • Xamarin Studio 5.9.7 (build 9)
  • Xamarin.iOS 9.0.1.18 (Business Edition)
  • Xcode 7.0 (8227) Build 7A220

The closest clue I got was https://forums.xamarin.com/discussion/28480/upload-to-appstore-failed-contains-an-invalid-key-cfbundleresourcespecification-in-bundle , but I can't find the option in Xamarin Studio mentioned.

It's a known issue mentioned here . Partial workaround did the trick for me.

Non-public Bug 31424 - [Xamarin Studio] [iOS] Classic API on Mac only: "Resource rules files "" not found". Partial workaround: Enable "Project Options -> General -> Use MSBuild build engine (unsupported for this project type)" and clean and rebuild the project. (The MSBuild build engine does now work for many Classic API projects.)

you have to edit the project *.csproj file with textedit and remove the xmlns="" in the

Then proceed with the answer from teahaige

Gagagu's answer worked for me. I had multiple lines like the following in my .csproj:

<InterfaceDefinition Include="xyz.xib" xmlns="" />

Removing the xmlns="" parts, then setting the MSBuild build engine option, and then cleaning and rebuilding the project did the trick.

I was able to correct this issue by upgrading my version of Xamarin to the 5.9.7 build 12 beta .

There is a ticket relating to this on Bugzilla ( https://bugzilla.xamarin.com/show_bug.cgi?id=34384#c2 ) so this issue should be corrected when that build hits the main release channel.

In the mean time you can install the 5.9.7 build 12 beta release if you change to the beta channel in Xamarin's upgrade options.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM