2014-04-26 91 views
1

我剛在我的iMac上安裝了RubyMotion。ruby​​motion無法找到CFBundle的可執行文件

我創造了我的第一個應用 - 你好

這是代碼:

class AppDelegate 
    def application(application, didFinishLaunchingWithOptions:launchOptions) 
    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) 
    @window.rootViewController = HelloViewController.alloc.init 
    @window.rootViewController.wantsFullScreenLayout = true 
    @window.makeKeyAndVisible 
    true 
    end 
end 

我跑$ Rake和IOS模擬器啓動。而我得到這個錯誤:

2014-04-25 18:58:03.157 Hello[10488:70b] Cannot find executable for CFBundle 0x8d8a130 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded) 

我試圖從另一個問題:

Temporary workaround: click iOS Simulator > Reset Content and Settings... and run again. 

但是,這並沒有解決它。

感謝您的幫助!

回答

2

這是iOS 7 SDK中相對無害(我相信)的錯誤。

https://devforums.apple.com/message/940094#940094

I had the same issue and found your post when searching for a solution. My application appeared to be running fine but I was still getting this message I was able to eliminate the message on my machine, here is what I had to do;

Stop all execution on the simulator. Go to the simulator's home screen using shift-command-h. Delete the app from the simulator device by holding a click on my program until the delete icon appeared, then click the X to delete. In the iOS Simulator select Reset Content and Settings. Clean the project in Xcode, shift-command-k. Build it and run it.

Note, I was doing steps 4 & 5 but that wasn't working. It wasn't until I added step 3 (as crazy as it sounds) that it cleared my message.

Hope this works for you!

--Dave

也許刪除應用程序,復位,並重新啓動了iOS模擬器會工作。

+0

我重置iPhone模擬器,然後重新啓動,它像冠軍一樣工作。 – stebooks

相關問題