realm/jazzy

Running jazzy from an Xcode 10.0 Aggregate Target - Run script phase raises errors

FabienLydoire opened this issue · 0 comments

When calling jazzy from an Xcode 10.0 (10A255) Aggregate Target - Run script phase, jazzy complains about missing USR and indicates "0% documentation coverage".

Parsing AppDelegate.swift (1/2)
Parsing ViewController.swift (2/2)
`window` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
`application(_:didFinishLaunchingWithOptions:)` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
`applicationWillResignActive(_:)` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
`applicationDidEnterBackground(_:)` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
`applicationWillEnterForeground(_:)` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
`applicationDidBecomeActive(_:)` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
`applicationWillTerminate(_:)` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
`viewDidLoad()` has no USR. First make sure all modules used in your project have been imported. If all used modules are imported, please report this problem by filing an issue at https://github.com/realm/jazzy/issues along with your Xcode project. If this token is declared in an `#if` block, please ignore this message.
building site
building search index
0% documentation coverage with 0 undocumented symbols
jam out ♪♫ to your fresh new docs in `docs`

When executing the run script phase, Xcode sets environment variables, including

export LLVM_TARGET_TRIPLE_SUFFIX=-simulator

When unsetting the LLVM_TARGET_TRIPLE_SUFFIX variable in the run script phase, jazzy works as expected.
Fixed run script:

unset LLVM_TARGET_TRIPLE_SUFFIX
jazzy

Logs:

Running xcodebuild
Parsing AppDelegate.swift (1/2)
Parsing ViewController.swift (2/2)
building site
building search index
10% documentation coverage with 9 undocumented symbols
included 10 private, fileprivate, internal, public, or open symbols
jam out ♪♫ to your fresh new docs in `docs`