--resource-rules has been deprecated in Mac OS X >= 10.10!

Hello Guys,

I have a really strange behavior. Yesterday i build an App without Problems. Also today i build one and forgot to increase the Version number.
After i increased the Version number ist not possible anymore to build an release for appstore. i always get this exception and i have no idea why.
There was an update from forms and insights but i make an complete undo of all changes so i have the old Versions again but i can't get it work.

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: Tool exited with code: 134. Output: Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
libc++abi.dylib: terminating with uncaught exception of type Security::UnixError: UNIX error exception

Whats wrong? I really need to make an update asap

Posts

  • Xamarin Studio
    Version 5.9.1 (build 3)
    Installation UUID: affdce82-583b-4ae1-82eb-c2c7e012d733
    Runtime:
    Mono 4.0.0 ((detached/d136b79)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 400000143
    

    Apple Developer Tools
    Xcode 6.3.2 (7718)
    Build 6D2105

    Xamarin.Android
    Not Installed

    Xamarin Android Player
    Not Installed

    Xamarin.iOS
    Version: 8.10.0.303 (Business Edition)
    Hash: 3c4e832
    Branch: master
    Build date: 2015-05-20 21:47:57-0400

    Xamarin.Mac
    Not Installed

    Build Information
    Release ID: 509010003
    Git revision: aad75a6e7e48f18120ce41f47d0ff2c6216f49c3
    Build date: 2015-05-08 12:46:18-04
    Xamarin addins: 1246b3044cbb7f56a217334f8fc5489ef8eefe3f

    Operating System
    Mac OS X 10.10.4
    Darwin iMac.local 14.4.0 Darwin Kernel Version 14.4.0
    Tue May 5 14:17:52 PDT 2015
    root:xnu-2782.30.4~3/RELEASE_X86_64 x86_64

  • JeffreyStedfastJeffreyStedfast USXamarin Team Xamurai

    The --resource-rules warning is just a warning and is therefor a red herring and not the real problem.

    The real problem is that codesign is exiting with error code 134 which is due to this:

    libc++abi.dylib: terminating with uncaught exception of type Security::UnixError: UNIX error exception

    AFAICT, this is a bug in the codesign tool doing something which causes an exception to be thrown in some Security API.

  • Hello Jeff
    I see what the problem is but I don't know why. Because it's working one build before. I'm not sure what's a reason for this security issue.

    But it's an apple problem? But I can't understand why it's working before.

    So I have to wait?

    Thanks for your answer :)

  • RolfBjarneKvingeRolfBjarneKvinge USXamarin Team Xamurai

    @ChristianSchmitt.6042: have you tried cleaning your project?

  • Yes I cleaned it several times and restarted XS and my Mac but it won't work.

  • Today I tried Build other Projects with the same result. It's independed of the project and thus no erroneous reference or something.

    I decide to make a clean installation of my mac and I installed only xamarin and xcode and imported my profiles and certificates.

    Now i get the same error like before....

    What cloud it be?

  • No one else has this Problem?
    Crazy ...

    I Updated Xamarin Studio today but nothing helps

  • ChristianSchmitt.0638ChristianSchmitt.0638 DEMember ✭✭
    edited June 2015

    OK today also an Update for XS was available and installed.
    Now i'm getting always

    Error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com (MT0000) (xxxx)

    === Xamarin Studio ===

    Version 5.9.3 (build 1)
    Installation UUID: aacf1118-cf7e-43aa-b5dc-f8c256129bca
    Runtime:
    Mono 4.0.1 ((detached/ed1d3ec)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 400010044
    

    === Apple Developer Tools ===

    Xcode 6.3.2 (7718)
    Build 6D2105

    === Xamarin.iOS ===

    Version: 8.10.1.64 (Business Edition)
    Hash: e6ebd18
    Branch: master
    Build date: 2015-05-21 21:55:09-0400

    === Xamarin.Android ===

    Not Installed

    === Xamarin Android Player ===

    Not Installed

    === Xamarin.Mac ===

    Not Installed

    === Build Information ===

    Release ID: 509030001
    Git revision: 5a524e1726ed103fdd4fe37e0356f2b35466ce9d
    Build date: 2015-06-02 16:35:08-04
    Xamarin addins: 51957cfbd06be911b212671ad05c2c6221ac90f9

    === Operating System ===

    Mac OS X 10.10.3
    Darwin iMac.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64

  • Hello Again,

    I've got an answer from Apple:

    Hello Christian,

    I'm responding to your question about signing your iOS app.

    The problem is that the iOS SDK you're using uses custom resource rules when signing, which are no longer supported on OS X 10.9.5 and later. TN2206: OS X Code Signing In Depth describes these changes in detail.

    This was fixed in Xcode 6.1. You didn't say which version of Xcode you're using. If you upgrade to Xcode 6.1 or later, this issue should go away.

    My Question is, what does Xamarin with these Custom Resource Rules?
    How can I check if I use some Custom Rules in my Project?

    Because I use the Latest version of XCode and Xamarin

  • ocheung174ocheung174 USMember
    edited June 2015

    How can I check if I use some Custom Rules in my Project?

    Project > Options > iOS Bundle Signing

  • ChristianSchmitt.0638ChristianSchmitt.0638 DEMember ✭✭
    edited June 2015

    Thanks Oscar,
    but its empty in my Settings.

    Sothis means that Xamarin added some CustomResourceRules to my Project during the Build?!

  • Hello,

    How I can disable this Custom Resource Rules in XS?

    Tool /usr/bin/codesign execution started with arguments: -v --force --sign 0555EFF8BA2858AB7E431CFC4542873C41C28BD5 --resource-rules bin/iPhone/Release/xxxx.app/ResourceRules.plist --entitlements obj/iPhone/Release/Entitlements.xcent bin/iPhone/Release/xxxx.app
    Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
    libc++abi.dylib: terminating with uncaught exception of type Security::UnixError: UNIX error exception
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Tool exited with code: 134. Output: Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
    libc++abi.dylib: terminating with uncaught exception of type Security::UnixError: UNIX error exception

    Because there were added in the sign process and I think this is the Problem

  • JeffreyStedfastJeffreyStedfast USXamarin Team Xamurai

    Notice in the output that the --resource-rules thing is a WARNING, not an ERROR. It is a red-herring. Ignore it. It has NOTHING to do with the problem you are facing.

    The ERROR is that libc++abi.dylib fails to link.

  • Ok very very strange! The Problem was that i build since 2 years over Network without any problems. My source is on my nas and i made a local copy and it works fine. wtf

  • softlionsoftlion FRBeta ✭✭✭

    You are building from a share, it won't work sometime with this error.

  • beer73beer73 ESMember

    Hello,
    I had the same error:

    libc++abi.dylib: terminating with uncaught exception of type Security::UnixError: UNIX error exception

    In my case, I solved it connecting to the share with CIFS:

    Finder > Go > Connect to Server > cifs://your-server/share-name

    With CIFS it will compile without this error.

    I hope it will help.

  • softlionsoftlion FRBeta ✭✭✭

    Yeah it works much more nicely thks @beer73 !

  • pfedotovskypfedotovsky RUMember ✭✭

    I had the same issue, solved by copying the entire solution to the local machine from shared folder.

Sign In or Register to comment.