Code Monkey home page Code Monkey logo

swiftc-wrapper's Introduction

swiftc-wrapper

Python script acting as a wrapper for swfitc compiler allowing to bypass SR-280 bug It allows to bypass the issue with the compiler when it runs with -Owholemodule flag.

Note: This bug affects all versions of Xcode 7.x up to Xcode 7.3 beta2 (where SR-280 bug was fixed).

More info: http://codica.pl/2015/12/25/taming-swift-compiler-bugs/

How to install

  • chmod +x swiftc.sh
  • cp swiftc.sh /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xc toolchain/usr/bin/swiftc

Note

Make sure that you have Python interpreter in /usr/bin/python and write access to /usr/local/bin

swiftc-wrapper's People

Contributors

tgebarowski avatar

Stargazers

Dat Nguyen avatar Wojtek Lukaszuk avatar Daniel Beard avatar Joseph Zhong avatar Peter Ryszkiewicz avatar Stefan Mayer-Popp avatar  avatar

Watchers

 avatar

swiftc-wrapper's Issues

Xcode crashing if no whole module optimization

Performing your workaround does not work if whole module optimization is turned off for the desired target. It does work when whole module optimization is on. I would update the instructions to mention this issue. It's probably a moot point since Xcode 7.3 will come out in the next few weeks, fixing this issue anyways. I really appreciate your workaround, by the way! Thanks so much!!!

2016-03-04 01:43:05.627 xcodebuild[30849:1637696]  DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDELanguageSupport/IDELanguageSupport-9517/XCLanguageSupport/XCSwiftCommandOutputParser.m:230
Details:  (subcommand) should not be nil.
Object:   <XCSwiftCommandOutputParser: 0x7fe613d15d30>
Method:   -handleCommandExitedMessage:didSignal:error:
Thread:   <NSThread: 0x7fe613be1030>{number = 17, name = (null)}
Hints: None
Backtrace:
  0  0x000000010f7f6acd -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1  0x000000010f7f6601 _DVTAssertionHandler (in DVTFoundation)
  2  0x000000010f7f6818 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x00000001196e618d -[XCSwiftCommandOutputParser handleCommandExitedMessage:didSignal:error:] (in XCLanguageSupport)
  4  0x00000001196e4d33 -[XCSwiftCommandOutputParser handleMessage:error:] (in XCLanguageSupport)
  5  0x00000001196e671a -[XCSwiftCommandOutputParser writeBytes:length:] (in XCLanguageSupport)
  6  0x000000011313935b -[XCLineBufferedOutputStream writeBytes:length:] (in DevToolsCore)
  7  0x00000001131cf43f -[XCWorkQueueCommandSubprocessInvocation handleOutputBytes:length:] (in DevToolsCore)
  8  0x00000001131d17b6 -[XCWorkQueueCommandLocalSubprocessInvocation handleOutputFileDescriptorActivity] (in DevToolsCore)
  9  0x0000000113233cc3 -[Xcode3BuildTask main] (in DevToolsCore)
 10  0x00007fffa0cb52fb -[__NSOperationInternal _start:] (in Foundation)
 11  0x00007fffa0cb4de7 __NSOQSchedule_f (in Foundation)
 12  0x00007fff8acb333f _dispatch_client_callout (in libdispatch.dylib)
 13  0x00007fff8acb7f6f _dispatch_queue_drain (in libdispatch.dylib)
 14  0x00007fff8acbe63b _dispatch_queue_invoke (in libdispatch.dylib)
 15  0x00007fff8acb6c87 _dispatch_root_queue_drain (in libdispatch.dylib)
 16  0x00007fff8acb6a34 _dispatch_worker_thread3 (in libdispatch.dylib)
 17  0x00007fff96f1168f _pthread_wqthread (in libsystem_pthread.dylib)
 18  0x00007fff96f0f365 start_wqthread (in libsystem_pthread.dylib)
Abort trap: 6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.