I am maintaining a project using Carthage. It runs fine and archives fine. But it failed to export enterprise app. The error in "Enterprise distribution options" is
ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NilClass>
If skip "Enterprise distribution options" page by clicking "Next" immediately, result in another error "bitcode_strip failed".
I had searched on stackoverflow, there are many related posts, but no question is the same as my situation so I post a new question.
I followed this post Bitcode_strip failed in Xcode 8 but none of the following solutions works.
- Remove all derived data and clean multiple times -- not work
- Change Xcode version (Xcode 9.2 and Xcode 8.3) -- not work
- Set STRIP_BITCODE_FROM_COPIED_FILES=NO -- not work
- All bit-code option in build setting are set to NO -- not work
- Check - uncheck "Rebuild from bitcode" option -- not work
I has found an answer and hope to help those who use Carthage. Please check my answer.