2014-01-05 73 views
0

我一直在這個項目上週工作,一切都在模擬器中運行良好。就在今天晚上,當我去運行它時,我得到了全新的全新錯誤,自從上一次的平滑構建/模擬以來,我添加的唯一代碼是以下從我剛剛創建的文件添加字典。加載CGContext錯誤沒有明顯的原因

我絕對是在Objective-C和Xcode的學習曲線的陡峭部分,而且這些錯誤根本沒有響個不停,因爲我沒有使用這些引用到我的項目中的任何代碼,除非它們與故事板中UI設計期間在幕後創建的代碼有關。先謝謝您的幫助!

這裏是我用來添加我的字典代碼:

- (void)calculate 
    { 
     // Retrieve the dictionary containing the chart 
     NSString *path = [[NSBundle mainBundle] pathForResource:@"chart" ofType:@"plist"]; 
     NSDictionary *chart = [NSDictionary dictionaryWithContentsOfFile: path]; 


    } 

這裏是錯誤日誌:

Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSaveGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetFlatness: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextAddPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextDrawPath: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextRestoreGState: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextGetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextFillRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextGetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextFillRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetFillColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextGetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextFillRects: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
Jan 5 02:40:46 Cs-MacBook-Pro.local Project[3731] <Error>: CGContextSetBlendMode: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. 
+1

加載一個字典從plist和'CGContext'錯誤是無關的,除非你用字典來畫東西。 – neilco

+0

是的,我沒有任何繪畫功能,所以它必須是不相關的,這就是我第一次猜測的東西。從後面的答案和其他與這個論壇相關的答案來看,我可能只需要和他們一起生活暫時...感謝您的回覆 –

回答

0

這是iOS7已知錯誤...只是讓它就像這樣...如果我是對的,這不會每次都顯示出來。目前沒有可用的解決方法。嘗試升級到7.0.3。欲瞭解更多信息,請看this question。你可以在StackOverflow上找到很多這樣的問題。不要擔心..繼續工作..讓我知道你是否仍然對我的答案感到不滿。 .. :)我知道它不容易消化,但你必須.. :(

+1

哦,這是令人不滿意的事情:/ OK我現在正在收到錯誤信息,但我會讓他們暫時放下。在接下來的一週內完成,敲木頭,我還沒有看到7.0.3,所以我認爲它現在處於測試階段,感謝您的幫助! –