appium / appium-for-mac

[deprecated] Application for automating a mac app with JSON wire protocol
Apache License 2.0
193 stars 70 forks source link

fix: Be able to build without sign for dev #81

Closed KazuCocoa closed 4 years ago

KazuCocoa commented 4 years ago

Current this project can build only on Xcode 10 environment. After switching to Xcode 11, the below error occurred without any changes.

CodeSign /Users/kazu/GitHub/appium-for-mac/build/Release/AppiumForMac.app/Contents/Frameworks/PFAssistive.framework/Versions/A (in target 'AppiumForMac' from project 'AppiumForMac')
    cd /Users/kazu/GitHub/appium-for-mac
    export CODESIGN_ALLOCATE=/Applications/Xcode_11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate

Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --timestamp=none --preserve-metadata=identifier,entitlements,flags /Users/kazu/GitHub/appium-for-mac/build/Release/AppiumForMac.app/Contents/Frameworks/PFAssistive.framework/Versions/A
/Users/kazu/GitHub/appium-for-mac/build/Release/AppiumForMac.app/Contents/Frameworks/PFAssistive.framework/Versions/A: bundle format unrecognized, invalid, or unsuitable
Command CodeSign failed with a nonzero exit code

** BUILD FAILED **

The following build commands failed:
    CodeSign /Users/kazu/GitHub/appium-for-mac/build/Release/AppiumForMac.app/Contents/Frameworks/PFAssistive.framework/Versions/A
(1 failure)

With this change, we can build without a sign by xcodebuild -configuration Debug

(I fixed a warning in AppiumForMac/Library/CocoaHTTPServer/Core/WebSocket.m by Xcode 11, too)