###前提・実現したいこと
正常にコンパイルできるようにする。
###試したこと
今回、XCodeを8にアップグレードしました。それまでSwiftは2.2で開発していたので、XCodeで表示される「Convert to current Swift syntax」の案内に従い、とりあえずSwift2.3に変換したところ、いくつかのエラーが表示されており、対処法がわかりません。今回はその一つ目だけを質問いたしますが、問題解決上必要であれば他のエラーについても提示させていただきます。
###発生している問題
ユニットテスト用のファイル("23yaTests.xctest")関係のエラーがいくつか表示されています。(ユニットテストは使用していません。)
※アプリ名は「23ya」です。
タイトルは「Compile Swift source file」となっており、これを開くと以下の内容が表示されます。
CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler cd /Users/ユーザ名/Desktop/23ya export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name _3yaTests -Onone -Xfrontend -migrator-update-sdk -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -target i386-apple-ios9.3 -g -module-cache-path /Users/ユーザ名/Library/Developer/Xcode/DerivedData/ModuleCache -Xfrontend -serialize-debugging-options -update-code -enable-testing -I /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Products/Debug-iphonesimulator -F /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Products/Debug-iphonesimulator -F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -parse-as-library -c -j4 /Users/ユーザ名/Desktop/23ya/23yaTests/_3yaTests.swift -output-file-map /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/Objects-normal/i386/23yaTests-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/Objects-normal/i386/_3yaTests.swiftmodule -Xcc -I/Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/23yaTests-generated-files.hmap -Xcc -I/Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/23yaTests-own-target-headers.hmap -Xcc -I/Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/23yaTests-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/23yaTests-project-headers.hmap -Xcc -I/Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Products/Debug-iphonesimulator/include -Xcc -I/Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/DerivedSources/i386 -Xcc -I/Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/DerivedSources -Xcc -DDEBUG=1 -emit-objc-header -emit-objc-header-path /Users/ユーザ名/Library/Developer/Xcode/DerivedData/23ya-fygrvphdryniskalvzggsgwbqrnc/Build/Intermediates/SwiftMigration/23ya/Intermediates/23ya.build/Debug-iphonesimulator/23yaTests.build/Objects-normal/i386/_3yaTests-Swift.h -Xcc -working-directory/Users/ユーザ名/Desktop/23ya -Xfrontend -serialize-debugging-options <unknown>:0: error: merge-module command failed with exit code 1 (use -v to see invocation)
###補足情報(言語/FW/ツール等のバージョンなど)
今回のエラーに関係するかどうか不明ですが、このアプリはRealmSwift1.0.2を使用しています。
回答1件
あなたの回答
tips
プレビュー