diff --git a/TestApplication/SUTestApplicationDelegate.m b/TestApplication/SUTestApplicationDelegate.m index 10929a4b..39812ce0 100644 --- a/TestApplication/SUTestApplicationDelegate.m +++ b/TestApplication/SUTestApplicationDelegate.m @@ -155,8 +155,10 @@ static NSString * const UPDATED_VERSION = @"2.0"; // Copy our appcast over to the server directory NSURL *appcastDestinationURL = [[serverDirectoryURL URLByAppendingPathComponent:appcastName] URLByAppendingPathExtension:appcastExtension]; + NSURL *appcastPath = [mainBundle URLForResource:appcastName withExtension:appcastExtension]; + assert(appcastPath); NSError *copyAppcastError = nil; - if (![fileManager copyItemAtURL:[mainBundle URLForResource:appcastName withExtension:appcastExtension] toURL:appcastDestinationURL error:©AppcastError]) { + if (![fileManager copyItemAtURL:appcastPath toURL:appcastDestinationURL error:©AppcastError]) { NSLog(@"Failed to copy appcast into cache directory with error %@", copyAppcastError); assert(NO); }