[swift-users] Latest development code fails to build
Jordan Rose
jordan_rose at apple.com
Wed Apr 13 18:29:03 CDT 2016
Drat, that's me. I was hoping to get out of the business of knowing UIApplicationMain's exact signature, but I guess that doesn't always work? I'll ask around for a better solution.
My apologies,
Jordan
> On Apr 13, 2016, at 16:15, Charles Lane via swift-users <swift-users at swift.org> wrote:
>
> Actually, you don’t have to write any code. Just make a new project using a single view application and try to build it. I’ve re-downloaded the developer build and even downloaded Xcode again from the App store.
>
> Here is the error that Xcode reports:
>
> CompileSwift normal x86_64 /Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff/iosTestforJGroff/AppDelegate.swift
> cd /Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff
> /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a.xctoolchain/usr/bin/swift -frontend -c /Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff/iosTestforJGroff/ViewController.swift -primary-file /Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff/iosTestforJGroff/AppDelegate.swift -target x86_64-apple-ios9.3 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -I /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Products/Debug-iphonesimulator -F /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Products/Debug-iphonesimulator -enable-testing -g -module-cache-path /Users/charleslane/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-generated-files.hmap -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-own-target-headers.hmap -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-all-target-headers.hmap -Xcc -iquote -Xcc /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-project-headers.hmap -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/DerivedSources/x86_64 -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff -emit-module-doc-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc -Onone -module-name iosTestforJGroff -emit-module-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule -serialize-diagnostics-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.dia -emit-dependencies-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.d -emit-reference-dependencies-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.swiftdeps -o /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.o
>
> Assertion failed: (UIApplicationMainFn && "UIKit not imported?"), function emitArtificialTopLevel, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/SILGen/SILGenFunction.cpp, line 508.
> 0 swift 0x000000010fdb07eb llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
> 1 swift 0x000000010fdafa76 llvm::sys::RunSignalHandlers() + 70
> 2 swift 0x000000010fdb0ebf SignalHandler(int) + 383
> 3 libsystem_platform.dylib 0x00007fff9504652a _sigtramp + 26
> 4 swift 0x0000000110861390 FirstTarget + 71400
> 5 swift 0x000000010fdb0c96 abort + 22
> 6 swift 0x000000010fdb0c71 __assert_rtn + 81
> 7 swift 0x000000010d51175b swift::Lowering::SILGenFunction::emitArtificialTopLevel(swift::ClassDecl*) + 5211
> 8 swift 0x000000010d4b1198 swift::Lowering::SILGenModule::emitSourceFile(swift::SourceFile*, unsigned int) + 3768
> 9 swift 0x000000010d4b17a0 swift::SILModule::constructSIL(swift::ModuleDecl*, swift::SILOptions&, swift::FileUnit*, llvm::Optional<unsigned int>, bool, bool) + 928
> 10 swift 0x000000010d4b1cc5 swift::performSILGeneration(swift::FileUnit&, swift::SILOptions&, llvm::Optional<unsigned int>, bool) + 117
> 11 swift 0x000000010d218c47 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef<char const*>, int&) + 13543
> 12 swift 0x000000010d2148af frontend_main(llvm::ArrayRef<char const*>, char const*, void*) + 2879
> 13 swift 0x000000010d20fdad main + 2637
> 14 libdyld.dylib 0x00007fff9ca3e5ad start + 1
> 15 libdyld.dylib 0x000000000000003b start + 1666980495
> Stack dump:
> 0. Program arguments: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a.xctoolchain/usr/bin/swift -frontend -c /Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff/iosTestforJGroff/ViewController.swift -primary-file /Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff/iosTestforJGroff/AppDelegate.swift -target x86_64-apple-ios9.3 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -I /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Products/Debug-iphonesimulator -F /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Products/Debug-iphonesimulator -enable-testing -g -module-cache-path /Users/charleslane/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-generated-files.hmap -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-own-target-headers.hmap -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-all-target-headers.hmap -Xcc -iquote -Xcc /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/iosTestforJGroff-project-headers.hmap -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/DerivedSources/x86_64 -Xcc -I/Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/charleslane/SWDev/SwiftFiles/MiscProjects/iosTestforJGroff -emit-module-doc-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc -Onone -module-name iosTestforJGroff -emit-module-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule -serialize-diagnostics-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.dia -emit-dependencies-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.d -emit-reference-dependencies-path /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.swiftdeps -o /Users/charleslane/Library/Developer/Xcode/DerivedData/iosTestforJGroff-faanxccoissojpdbyetnddefzcpz/Build/Intermediates/iosTestforJGroff.build/Debug-iphonesimulator/iosTestforJGroff.build/Objects-normal/x86_64/AppDelegate.o
>
> Regards,
> Chuck Lane
>
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160413/e13757c9/attachment.html>
More information about the swift-users
mailing list