
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Scanning Swift Projects
Hello,
I am new to forum, so I hope I use it correctly. I am currently supposed to analyze an IOS app written with SWIFT 3.0.2. I installed the Fortify plugin for Xcode (version 7.3). When I run the test, it gives the following error. I'll appreciate if you can tell me how i can fix this problem. By the way, the app is successfully built with Xcode.
Best Regards,
Mehmet LEBLEBİCİ
***********************************************************************************************************************
An error occured while performing swift translation: 2017-01-18 16:34:00.251 xcodebuild[27754:618914] [MT] PluginLoading: Required plug-in compatibility UUID E0A62D1F-3C18-4D74-BFE5-A4167D643966 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FortifyScanningPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
<unknown>:0: error: module file was created by a newer version of the compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/swift//macosx/x86_64/Swift.swiftmodule
[error]: An unrecoverable error occurred during translation.
Signalled
Execution backtrace:
0 swift-translator 0x000000011013392b llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1 swift-translator 0x000000010df91819 hpe::FortifyException::FortifyException(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 329
2 swift-translator 0x000000010df918da hpe::FortifyException::FortifyException(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 74
3 swift-translator 0x000000010df912ec hpe::signalHandler(int) + 60
4 libsystem_platform.dylib 0x00007fffba3c1bba _sigtramp + 26
5 swift-translator 0x000000010dfbcf26 llvm::SmallVectorImpl<swift::DiagnosticArgument>::operator=(llvm::SmallVectorImpl<swift::DiagnosticArgument>&&) + 262
6 swift-translator 0x000000010e308e17 swift::ASTVisitor<(anonymous namespace)::StmtChecker, void, swift::Stmt*, void, void, void, void>::visit(swift::Stmt*) + 311
7 swift-translator 0x000000010e307939 swift::TypeChecker::typeCheckFunctionBodyUntil(swift::FuncDecl*, swift::SourceLoc) + 361
8 swift-translator 0x000000010e30827b swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 203
9 swift-translator 0x000000010e29d956 typeCheckFunctionsAndExternalDecls(swift::TypeChecker&) + 182
10 swift-translator 0x000000010e29e5dd swift::performTypeChecking(swift::SourceFile&, swift::TopLevelContext&, swift::OptionSet<swift::TypeCheckingFlags, unsigned int>, unsigned int) + 1821
11 swift-translator 0x000000010df2d522 hpe::translate(swift::SourceManager&, swift::ASTContext*, std::__1::map<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, bool, bool) + 3090
12 swift-translator 0x000000010df936ae setup(int, char**) + 6190
13 libdyld.dylib 0x00007fffba1b4255 start + 1
14 libdyld.dylib 0x0000000000000115 start + 1172618945
[error]: swift-translator has detected an internal error and is halting (code 139).
*****************************************************************************************************************


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
What version of SCA. I don't believe that SCA 16.20 supports anything newer than SWIFT 2.2.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
I found this in Stack Overflow. This will register the UUID (This will keep adding the same UUID on repeated invocations. Checking for the already registered UUID may resolve this). I found that after registering the UUID Xcode 9.1 will deny attempts to execute the plugin following a design change that requires code signing for the plugin. The change appears caused by earlier attackers distributing malicious code in a "Ghost" copy of Xcode.
# https://stackoverflow.com/questions/20732327/xcode-5-required-plug-in-not-present-in-dvtplugincompatibilityuuids
XCODEUUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID)
ls -laR ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins
for f in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*; do
defaults write "$f/Contents/Info" DVTPlugInCompatibilityUUIDs -array-add "${XCODEUUID}"
done
defaults read "$f/Contents/Info" DVTPlugInCompatibilityUUIDs