Tagged: Voodoo RSS Toggle Comment Threads | Keyboard Shortcuts

  • toto 18:50 on 1. February 2012 Permalink | Reply
    Tags: , Voodoo,   

    Debug broken code highlighting in Xcode 4 

    If you use Xcode 4 a lot this might have happened to you, too: Coloring and code completion fail and do not come back. Which makes working with Xcode almost impossible

    This happens when Xcode’s indexing process fails for some reason. This can be a header file is missing to code highlighting (which can be different from the compiler in some cases) or in some cases a bad #define. The problem is that it fails silently so you cannot fix it.

    After having this problem with a big project I stumbled onto the magic hint on Stack Overflow.  After you quit Xcode enter this into a shell:

    defaults write com.apple.dt.Xcode IDEIndexingClangInvocationLogLevel 3

    After this you should open the project and see messages like this:

    Xcode: IDEIndexingClangInvocation: Failed to save PCH file: /Users/user/Library/Developer/Xcode/DerivedData/Project-drsrrgaenperjadmqslqfxyqcqyt/Index/PrecompiledHeaders/Some-Prefix-cgepzuvkwimbsvcmqrbbpeoyhdpz_ast/Some-Prefix.pch.pth

    Looking through these messages will show you what goes on and might help you finding the problem.

    For me it was just copying header files from a framework on the place the Clang parser was looking for them.

     
  • Ullrich 13:45 on 7. December 2011 Permalink | Reply
    Tags: , , Voodoo,   

    Remote Web Inspector Pt. 2 

    It gets even better, because this also works in Mobile Safari on the iOS 5 Simulator!

    Here’s a little script you can run, that enables the remote Web Inspector via gdb (via @atnan).

    Here’s to all the mobile devs!

     
  • Ullrich 15:57 on 1. September 2010 Permalink | Reply
    Tags: , Framework, Mac, Voodoo,   

    Embedded Frameworks 

    When embedding frameworks to your Mac app there might be problems of finding a header file. There are three things to check for:

    • The framework needs to have @executable_path/../Frameworks as Installation Directory in it’s build settings.
    • The app should include the following in its framework search path: “$(CONFIGURATION_BUILD_DIR)/$(CONTENTS_FOLDER_PATH)/Frameworks” (including the quotes!)
    • Also make sure to have a Copy Frameworks build phase and that your famework is added to it.
     
    • Ullrich 16:24 on 13. September 2010 Permalink

      When you’re importing the header files make sure to import them “framework style”:

      #import <TheFramework/TheHeader.h>

      If you still can’t find your framework headers make sure your target is actually linked against them.

  • Gernot 12:51 on 20. July 2010 Permalink | Reply
    Tags: , , Voodoo   

    Double Rainbow! 

    When you experience strange performance lags on an iPhone 4, make sure that your @2x images are *really* double the size of the original images. Especially if used in -colorWithPatternImage:

     
  • Ullrich 17:17 on 20. May 2010 Permalink | Reply
    Tags: , , Voodoo   

    Finishing & canceling concurrent NSOpera… 

    Finishing & canceling concurrent NSOperations requires to trigger KVO for isFinished and isCancelled.

     
  • Ullrich 12:45 on 24. June 2009 Permalink | Reply
    Tags: , Developer Portal, Voodoo   

    If the Submit button on the page for creating or modifying a provisioning profile doesn’t work you can enable it by Selecting the AppID dropdown. this triggers a validation of the form and reenables the submit button.
    Boom it just works! Magic! :)

     
  • Gernot 15:12 on 23. June 2009 Permalink | Reply
    Tags: , , Voodoo   

    Der magische Doppelbesen ist unser Freund. 

    If nothing else helps, and Xcode is not accepting provisioning profiles, just remember that the magic double-brush is your fearless friend. “Nuff said.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel