2013-03-20 49 views
1

我正在嘗試爲我正在構建的某個調整添加首選項包。我跟着this tutorial的部分添加了偏好包。我嘗試添加偏好束後,我的調整失敗,出現以下錯誤編譯:Theos無法在添加首選項包後進行編譯調整

Making all for tweak MyTweak... 
Preprocessing Tweak.xm... 
Compiling Tweak.xm... 
Linking tweak MyTweak... 
Stripping MyTweak... 
Signing MyTweak... 
Making all in prefs... 
Making all for bundle prefs... 
Copying resource directories into the bundle wrapper... 
Compiling prefs.mm... 
cc1objplus: warnings being treated as errors 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/PSListController.h:9, 
       from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/PSLocaleController.h:8, 
       from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/Preferences.h:9, 
       from prefs.mm:1: 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/PSViewController.h:47: warning: property ‘specifier’ type does not match protocol ‘PSController’ property type 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/PSViewController.h:47: warning: property ‘rootController’ type does not match protocol ‘PSController’ property type 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/PSSetupController.h:7, 
       from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/PSInternationalLanguageSetupController.h:7, 
       from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/Preferences.h:24, 
       from prefs.mm:1: 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/Preferences.framework/Headers/PSRootController.h:71: warning: property ‘specifier’ type does not match protocol ‘PSController’ property type 
make[3]: *** [obj/prefs.mm.ade1d157.o] Error 1 
make[2]: *** [internal-bundle-all_] Error 2 
make[1]: *** [prefs.all.bundle.variables] Error 2 
make: *** [internal-all] Error 2 

任何想法?

謝謝。

回答

1

您的版本的標題可能會混亂,因爲它們是私人框架標題,而不是官方的Apple標題。

兩個可能的解決方案:

  1. 從更好地源重新下載標頭。經常推薦使用rpetrich's versions

  2. 如果這不起作用,請手動編輯標題以解決問題。找到包含PSController協議(可能是PSController.h)的標頭,檢查specifier應該是什麼類型,然後在PSViewController.h中進行更改。我相信在第一次處理偏好套餐時,我必須這樣做。

+0

謝謝。我試着解決方案1,只是得到更多的錯誤,所以我恢復到我以前的文件,並將嘗試解決方案2.雖然看着頭文件,我注意到iOSOpenDev修改它們(我安裝了iOSOpenDev前一段時間來嘗試和我目前沒有使用它)。我決定重新安裝Xcode(包括iOS SDK),看看是否可以解決問題。 – 2013-03-20 17:33:41

+0

問題已解決。我重新安裝了Xcode,然後將rpetrich的頭文件下載到$ THEOS/include中,並且還必須cp /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h IOSurface /。然後我得到以下錯誤: /Volumes/Data/Users/derek/iOSProjects/calleridname/theos/include/IOSurface/IOSurfaceAPI.h:251:error:'xpc_object_t'does not named a type /Volumes/Data /用戶/ derek/iOSProjects/calleridname/theos/include/IOSurface/IOSurfaceAPI.h:255:錯誤:'xpc_object_t'未在此範圍內聲明 我剛剛評論這些行並且已成功編譯。 – 2013-03-20 19:02:00

+0

很高興爲您效力! – drewmm 2013-03-20 20:57:24

相關問題