Cadet 3rd Class
Cadet 3rd Class
453 views

Translation phase fails - iOS project

Hello,

According to the docs if the xcodebuild command works fine and build the project then sourceanalyzer should be able to proceed. However I am getting following error and error only happens when I run the command with sourceanalyzer.  Any help would be appreciated.

sourceanalyzer -Xss8G -Xms8G -Xmx8G -b MobileClient-IOS-Dev xcodebuild -workspace 'ios/MyIosApp.xcworkspace' -scheme 'MyIosApp.xcworkspace' -configuration Debug -destination "platform=iOS Simulator,name=iPhone X,OS=12.2"

Error

Translator exited with code: 1

error: unable to handle compilation, expected exactly one compiler job in ' "clang" "-cc1" "-triple" "-fmessage-length=0" "-S" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "vlog_is_on.cc" "-mrelocation-model" "static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno" "-no-integrated-as" "-mconstructor-aliases" "-dwarf-column-info" "-dwarf-ext-refs" "-fmodule-format=obj" "-debug-info-kind=limited" "-dwarf-version=4" "-debugger-tuning=gdb" "-target-linker-version" "409.12"

 

0 Likes
2 Replies
Cadet 3rd Class
Cadet 3rd Class

If anyone is having the same issue get the latest version of the scanner. The version that I used seems not compatible with latest xcode

0 Likes
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Hello,

I have the same problem, but I am using Fortify version 20.1 and Xcode version 11.3.1, which is supported by Fortify.

Any suggestion is welcome, thank you very much.

 

Show some of message:

Translator exited with code: 1
2020-10-08T15:00:24.5452900Z error: unable to handle compilation, expected exactly one compiler job in ' "clang" "-cc1" "-triple" "arm64-apple-ios9.0.0" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-Werror=implicit-function-declaration" "-E" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "RCTProfileTrampoline-arm.S" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables" "-faligned-alloc-unavailable" "-target-sdk-version=13.2" "-target-cpu" "cyclone" "-target-feature" "+fp-armv8" "-target-feature" "+neon" "-target-feature" "+crypto" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-feature" "+sha2" "-target-feature" "+aes" "-target-abi" "darwinpcs" "-fallow-half-arguments-and-returns" "-dwarf-column-info" "-debug-info-kind=standalone" "-dwarf-version=4" "-debugger-tuning=lld

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.