본문 바로가기

프로그래밍/MAC OS

spctl rejected (the code is valid but does not seem to be an app)

반응형

앱 공증(notarization)에 성공했으나, spctl 커맨드로 확인해 보면, code is valid but does not seem to be an app 이라는 에러가 발생하는 경우에 대한 타래 ( https://developer.apple.com/forums/thread/658054 )의 번역.

 


I've successfully notarized my app. Apple sends me an email saying so.
But a minute later, I try running the app but it has a white circle/slash over the icon. It will not run.
So I check the notarization with:

$ spctl --assess --verbose ChessOpeningsWizardProfessionalBuild120.app

ChessOpeningsWizardProfessionalBuild120.app: rejected (the code is valid but does not seem to be an app)

Other apps are working. That is, they get notarized and keep functioning as apps.
What is behind this "rejected (the code is valid but does not seem to be an app)" message?

app 을 성공적으로 공증하였다. 
그런데, 조금 있다가, app 을 실행하려고 하니 app 에 하얀색 원과 슬래시가 아이콘에 붙어 있고, 실행되지 않았다.
그래서 공증여부를 다음 커맨드로 확인해 봤다.

$ spctl --assess --verbose ChessOpeningsWizardProfessionalBuild120.app

ChessOpeningsWizardProfessionalBuild120.app: rejected (the code is valid but does not seem to be an app)

다른 앱들은 동작한다. 
코드는 유효하지만, 앱이 아닌 것 같다 ( "rejected (the code is valid but does not seem to be an app)" ) 는 메시지의 정체는 무엇인가?


The notary service does not check the structure of your app, it just checks how it’s signed. The white circle in the Finder does not indicate a code signing problem, but rather a problem with its overall structure. It’s likely that it’s missing its Info.plist, or some key item in its Info.plist, or there’s something else broken in its directory structure.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"

notary service 는 sign 되었는지를 체크할 뿐, app 의 구조는 체크하지 않는다. 파인더 에서의 하얀색 원은 코드사이닝 문제를 암시하지 않는다, 오히려 (app의) 전반적인 구조 문제를 암시한다. 아마도 info.plist 의 key 중에 무엇인가가 빠져 있을 가능성이 있다. 아니면, app의 디렉토리 구조에서 무언가가 잘못되어 있을 것이다.


유사한 문제를 겪었다. app 의 info.plist 안에 CFBundleExecutable 항목이 누락되어 문제가 발생하였었다. ( 맥오에스 app 은 디렉토리이고 그 안의 디렉토리를 잘 뒤져보면 info.plist 파일이 존재함. )

728x90