Bitcode related command throws warning about unused -iapinotes-modules argument

Originator:keithbsmiley
Number:rdar://31372950 Date Originated:31-Mar-2017 10:25
Status:Resolved Resolved:Xcode 9 beta 3
Product:Developer Tools Product Version:Version 8.3 (8E162)
Classification:Other Bug Reproducible:Always
 
Summary:
Starting with Xcode 8.3, when swift is running a bitcode related command, there is a warning about `-iapinotes-modules` being unused. Example:

```
/Applications/Xcode-8.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file path/Transform.bc -target armv7-apple-ios8.0 -O -module-name Mapper -o path/Transform.o -embed-bitcode -disable-llvm-optzns
<unknown>:0: warning: argument unused during compilation: '-iapinotes-modules /Applications/Xcode-8.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7'
```

Steps to Reproduce:
1. Compile a build with bitcode

Expected Results:
There are no warnings

Actual Results:
There is a warning about an unused argument

Version:
Version 8.3 (8E162)

Notes:

Comments

This argument is no longer passed in Xcode 9 beta 3 so this is fixed now.

By keithbsmiley at July 17, 2017, 5:41 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!