Programing

오류 ITMS-90164 / 90046 : 유효하지 않은 코드 서명 자격

crosscheck 2020. 10. 11. 09:08
반응형

오류 ITMS-90164 / 90046 : 유효하지 않은 코드 서명 자격


참고 : Xamarin을 사용하여 개발 중입니다. 비슷한 질문은 자 마린 포럼에 게시 여기

CompanyApp 이라는 앱을 만들고 있습니다. 그런 다음 해당 앱 ID를 사용하는 배포 프로비저닝 프로필과 함께 com.Company.CompanyApp에 대한 앱 ID를 만들었습니다 . 바이너리를 업로드했는데 완벽하게 작동했습니다.

그런 다음 앱의 데모 버전 (기본적으로 약간의 수정이있는 동일한 앱이므로 동일한 솔루션 및 프로젝트, 다른 번들 서명 설정), CompanyAppDemo 와 새 앱 ID com.Company.CompanyAppDemo 및 새 앱 ID를 사용하는 새 배포 프로비저닝 프로파일. 새 프로비저닝 프로필을 사용하도록 iOS 번들 서명 옵션을 업데이트하고 IPA를 생성했습니다. 하지만 이것을 Application Loader에 업로드했을 때 다음과 같은 오류가 발생했습니다.

[2015-01-23 16:08:21 SGT] 오류 : ERROR ITMS-90164 : "잘못된 코드 서명 권한입니다. App Bundle 서명의 권한이 프로비저닝 프로필에 포함 된 권한과 일치하지 않습니다. 프로비저닝에 따라 프로필에 허용되지 않는 키 값이 포함되어 있습니다. 'Payload / CompanyApp.app / CompanyApp'의 'application-identifier'키에 대한 'TEAMID.com.Company.CompanyApp' "

[2015-01-23 16:08:21 SGT] 오류 : 오류 ITMS-90046 : "잘못된 코드 서명 자격입니다. 응용 프로그램 번들의 서명에 iOS에서 지원되지 않는 코드 서명 자격이 포함되어 있습니다. 특히 'TEAMID.com.Company 값'을 입력하십시오. 'Payload / CompanyApp.app / CompanyApp'의 'application-identifier'키에 대한 .CompanyApp '은 지원되지 않습니다.이 값은 TEAMID로 시작하는 문자열이어야하며 그 뒤에 점'. '과 번들 식별자가 와야합니다. "

나는 아무 소용이 없다는 것을 알아 내기 위해 며칠 동안 디버깅을 해왔다.

새 프로필로 서명 할 때 Application Loader가 던진 오류가 TEAMID.com.Company.CompanyAppDemo 대신 원래 TEAMID.com.Company.CompanyApp 의 ID를 참조하는 이유궁금합니다 . 잘못된 프로비저닝 프로필을 선택하는 Xamarin의 버그입니까, 아니면 뭔가 누락 되었습니까? 앱마다 다른 인증서가 필요하지 않습니까?

Xamarin에서 iOS 빌드 서명 옵션을 변경하기 전에 항상 XCode> 기본 설정에서 프로비저닝 프로필 목록을 새로 고쳤습니다.


누군가 나처럼 ERROR ITMS-90046을 검색하여 여기에 오면 내 해결책은 그것을 정리하고 미리 컴파일 된 모든 프레임 워크 (사용자 지정 프레임 워크)를 삭제 한 다음 다시 빌드하는 것입니다.

참고 : 오류 설명에는 핵심 "aps-environment"에 대해 "development"라고 표시되어 있습니다.

편집 : 실제 오류 메시지


나는 같은 문제가 있었고 간단한 Product-> Clean으로 해결했습니다 .


사람은 모두 오류를 검색하여 여기에 들어갔을 경우 ITMS-90164 및 오류 ITMS-90046GET-태스크 수ASP-환경 키 :

1

David P가 말했듯이, 새 아카이브가 내 문제를 해결하기 전에 제품-> 청소 .

제 경우에는 결함이있는 xarchive에 다음 파일이 누락 된 것을 목격했습니다.

2

프로덕션 서명을 위해 .xarchive를 클라이언트에 보내기 전에 archived-expanded-entitlements.xcent 파일을 찾아서 거기에 있는지 확인할 수 있습니다.


드디어 2 주 동안 머리를 당기고 ..

어떤 이유로 TEAMID.com.Company.CompanyAppDemo 로 설정된 Entitlements.plist에 키 'application-identifier'가없는 경우 Xamarin은 원래 응용 프로그램 식별자, 즉 TEAMID.com.Company.CompanyApp을 사용합니다.

따라서 해결책은 Entitlements.plist 내에 올바른 애플리케이션 번들 ID를 지정하는 애플리케이션 식별자를 추가하는 것이 었습니다. 그런 다음 빌드 옵션> iOS 번들 서명에 plist를 포함합니다.


동일한 문제를 간단한 Product-> Clean로 해결했습니다 .


Entitlements.plist에서이를 변경합니다.

<key>aps-environment</key>
<string>development</string>

이에:

<key>aps-environment</key>
<string>production</string>

iTunes connect에서 새 계약에 동의해야하는 경우에도 발생할 수 있습니다. iTunes connect에 로그인하면 상단에 최신 계약 변경에 동의하라는 배너가 표시됩니다.


저에게 문제는 자동 추가되고 비어있는 Entitlements.plist였습니다. 사용자 정의 권한 필드에서 제거하고 문제를 해결했습니다.

Visual Studio 2015에서 iOS 번들 서명보기


포장하기 전에 해당 릴리스 인증서를 선택하지 않으면 ERROR ITMS-90164가보고됩니다.

빌드 설정-> 코드 서명 ID-> 릴리스-> 모든 IOS SDK


보관할 때 WatchKit 앱이 아닌 앱 대상을 선택했는지 확인하십시오.


다른 답변 중 어느 것도 나를 위해이 오류를 해결하지 못했지만 이렇게했습니다.

  1. 새 XCode 응용 프로그램을 만들고 코드 서명 설정을 확인하십시오.

  2. 앱이 기본 XCode 7 또는 Xcode 8 서명 및 프로비저닝 설정과 유사하게 설정되도록하십시오. 여기에 XCode 7이 표시되며 XCode 8에서 다시 변경됩니다.

프로비저닝 및 서명

  1. 위의 내용이 충분하지 않은 경우 다시 수행해야 할 수 있지만 이번에는 Apple Keyring에서 만료 된 이전 프로비저닝 프로파일을 삭제하거나 XCode에서 Apple 개발자 (itunes) 계정을 삭제하고 다시 로그인합니다. 선호도. 변경 후 XCODE를 종료하고 다시 시작하십시오. 그런 다음 계정을 다시 추가하고 XCode가 새 서명 및 팀 정보를 가져 오도록하십시오.

마스터가 아닌 git 브랜치에서 빌드를 업로드하려고했습니다. 이 문제를 해결하기 위해 분기를 마스터에 병합하고 다시 빌드했습니다. 그런 다음 빌드를 성공적으로 업로드 할 수있었습니다.


2 개의 대상 (개발자 ID 2 개, 권한 2 개 포함)을 포함하는 프로젝트가 이로 이어질 수 있습니다. (어떻게 일어 났는지 묻지 마세요 ...)

보관할 때 다른 자격 파일을 일시적으로 제거합니다.


Doing a proper Xcode 'Quit' and then restart was the final action that got it working for me.

I had changed the bundle identifier (for a demo version) and got the same error (as detailed in the question) when verifying my archived build. I am using Xcode. Just closing Xcode and reopening my project wasn't enough, but a full 'Quit' was. Something was probably cached somewhere I'm guessing.


I tried everything listed here, turned out the problem was my .entitlement file, that had lines I never put in in the first place, they just got added somehow.
Removed those lines and tried again, worked.


I have just renamed in entitlements.plist the value of Access domains from applinks:htts://domain.app.link to applinks:domain.app.link it works like a charm. Cheers!


  1. Go to Build Phase in Xcode
  2. Remove all the frameworks
  3. Add them back
  4. Now build->Archieve->Upload to App Store

Hurray, You are done with it. Problem solved


For me, I was able to solve it by turning off / on again the automatic code signing feature:

여기에 이미지 설명 입력


For me I had the wrong file in my Custom Entitlements setting under iOS Bundle Signing. Removed it and it worked!


After many hours of investigation, i found an easy solution.

Instead of using the application loader to upload the application, I used the Organizer from XCode and it worked without any warnings when doing the upload!


My problem is I was using a wrong bundle to create IPA file


I had exactly the same problem and it was quite a stupid mistake. I don't want anyone to spend time on this, so for this one:

잘못

So what happened here, was that i entered '10' in the deployment target. That should have been 10.0 instead. That is what produced the infamous ERROR ITMS-90164/90046: Invalid Code Signing Entitlements for me!


You should check your Entitlements. It is like plist file. Edit it to development and the remove the extra fields.

enter image description here


My two cents here.

Just now I stuck in this problem because when I copy my TeamID / Application ID from the apple developer portal which brings a lot of unrelated value to the entitlement.plist. I didn't notice this because I was using Xcode to edit the entitlement.plist and the input box will not display everything after the first new line character.

I suggest using plain text editor for entitlement.plist for this case.

Thanks, Samuel


지난 날 Stackoverflow 에서 읽은 모든 트릭을 시도한 후 "xxxxxx.entitlements"파일을 삭제하고 다시 생성합니다. Capabilities를 클릭하고 Associated Domains 에서 ON을 선택 하고 "Domains"를 추가합니다. 그런 다음 기능> 푸시 알림에서 "권한 파일에 푸시 알림 인 타이틀먼트 추가"수정을 클릭하십시오.

이렇게하면 ARCHIVE를 성공적으로 수행 할 수 있습니다.

참고 URL : https://stackoverflow.com/questions/28106791/error-itms-90164-90046-invalid-code-signing-entitlements

반응형