2017-01-18 6 views
1

Xcode 8.2를 사용하여 명령 줄에서 빌드 할 때 버그입니까? fbsimctl 구축하려고 할 때'macOS 10.12'SDK의 'Command-line Tool'에 코드 서명이 필요합니다.

이걸보고 있어요 : 엑스 코드에서 구축, 흥미롭게도

=== BUILD TARGET fbsimctl OF PROJECT fbsimctl WITH CONFIGURATION Release === 

Check dependencies 
"fbsimctl" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. 
Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12' 

** BUILD FAILED ** 


The following build commands failed: 
    Check dependencies 
(1 failure) 

:

brew tap facebook/fb 
brew install fbsimctl --HEAD 

==> Installing fbsimctl from facebook/fb 
==> Cloning https://github.com/facebook/FBSimulatorControl.git 
Updating /Users/lnatan/Library/Caches/Homebrew/fbsimctl--git 
==> Checking out branch master 
==> ./build.sh fbsimctl build /usr/local/Cellar/fbsimctl/HEAD-244a622 
Last 15 lines from /Users/lnatan/Library/Logs/Homebrew/fbsimctl/01.build.sh: 
cd /tmp/fbsimctl-20170118-36571-pwc8nx/fbsimctl 
/usr/bin/touch -c /tmp/fbsimctl-20170118-36571-pwc8nx/build/Build/Products/Debug/FBSimulatorControlKit.framework 

=== BUILD TARGET fbsimctl OF PROJECT fbsimctl WITH CONFIGURATION Debug ≡ 

Check dependencies 
"fbsimctl" isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. 
Code signing is required for product type 'Command-line Tool' in SDK 'macOS 10.12' 

** BUILD FAILED ** 

The following build commands failed: 
Check dependencies 
(1 failure) 

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): 
https://github.com/facebook/homebrew-fb/issues 

수동 구축을 위해 노력 대신 스크립트를 사용하여, 나는 비슷한 문제를 얻을 수 성공합니다.

+0

export CODE_SIGNING_REQUIRED = NO && brew install fbsimctl --HEAD를 사용하면이 문제를 해결할 수 있지만 근본 원인은 분명하지 않습니다. –

+0

답변을 찾으셨습니까? 같은 조각으로 고투. – OlivaresF

+1

불행히도, 아니요. 해결 방법이 작동합니다. –

답변

0

당신은 코드 서명 그것은 설치 지침에서의

export CODE_SIGNING_REQUIRED=NO && brew install fbsimctl --HEAD 

을 해제하기 위해 ENV 변수로이를 실행해야합니다.

+0

그 지시 사항을 제공 한 사람은 다음과 같습니다. https://github.com/facebook/FBSimulatorControl/issues/342 –

+0

하하 알겠습니다! 고마워! – MoOx