This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface NSKeyedUnarchiver (Xcode5Fix) | |
@end | |
@implementation NSKeyedUnarchiver (Xcode5Fix) | |
+ (void)load | |
{ | |
[self exchangeInstanceMethod:@selector(decodeInt32ForKey:) | |
withMethod:@selector(xcode5Fix_decodeInt32ForKey:)]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Xcode Server notifies developers via e-mail (sadly no Jabber support yet) about the state of its integrations. In the default settings, Mavericks Server directly tries to send these messages. If your Xcode Server runs on a regular dialup DSL line, these messages will most likely be bounced as spam. | |
To get it to work one needs to activate the relay option in the Server.app > Mail settings with the credentials of your e-mail ISP. | |
But additionally I had to issue the following commands in Terminal.app to make it work: | |
sudo postconf -c /Library/Server/Mail/Config/postfix/ -e "smtp_sasl_security_options = noanonymous" | |
sudo postfix reload | |
sudo postsuper -r ALL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Shell script to be executed on a Mavericks Server runing Xcode Server using sudo | |
BOTRUN_DATA=/Library/Server/Xcode/Data/BotRuns | |
LATEST_RUN=`ls -tr $BOTRUN_DATA | grep BotRun- | tail -n1` | |
tail -f ${BOTRUN_DATA}/${LATEST_RUN}/output/build.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "PWAssertionHandler.h" | |
#import "PWLog.h" | |
#import "Intercept_objc_exception_throw.h" | |
#import <objc/runtime.h> | |
#import "PWDispatch.h" | |
#ifndef NDEBUG | |
@interface NSAssertionHandler (PWExtensions) | |
@property (nonatomic, readonly) BOOL isPWHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f ${WORKSPACE}/test-reports/*.xml | |
rm -rf /Users/jenkins/Library/Developer/Xcode/DerivedData | |
rm -rf ${WORKSPACE}/Build/Products | |
nice -n 20 xcodebuild -workspace MyWorkspace.xcworkspace -scheme MyScheme -configuration Debug SYMROOT=${WORKSPACE}/Build/Products clean test OTHER_CFLAGS='$(inherited) -Qunused-arguments -Werror' | ocunit2junit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f ${WORKSPACE}/test-report.xml | |
rm -rf /Users/jenkins/Library/Developer/Xcode/DerivedData | |
rm -rf ${WORKSPACE}/Build/Products | |
nice -n 20 /Users/jenkins/xctool/xctool -reporter pretty -reporter junit:${WORKSPACE}/test-report.xml -workspace MyWorkspace.xcworkspace -scheme MyScheme -configuration Debug SYMROOT=${WORKSPACE}/Build/Products test OTHER_CFLAGS='$(inherited) -Qunused-arguments -Werror' | |
# Note the -Qunused-arguments is needed because xcodebuild adds unused compiler arguments about which clang complains a lot. Together with -Werror this results in failed builds. So we have to silence this kind of warning. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSManagedObjectContext (PWExtensions) | |
#ifndef NDEBUG | |
// Core Data uses exceptions to notify itself about optimistic locking failures. These exceptions are intercepted by | |
// Core Data and never reach the client code. Such an exception should not drop in the debugger because it is not raised | |
// due to a programming error. | |
// Since the exception is thrown inside -[NSManagedObjectContext save:], this category is a logical place to install | |
// the filter. | |
+ (void) load | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Has been moved to https://github.com/depth42/MEUnarchiver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.dt.Xcode ApplePersistenceIgnoreState YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo xcrun xcscontrol --configure-email-transport 127.0.0.1 |
OlderNewer