FBSDKCoreKit/FBSDKCoreKit.h not found error after updating CocoaPod to 1.0.0

I recently updated to CocoaPods 1.0.0 and also updated the FacebookSDK for an app that I am working on. Well needless to say things broke. For whatever reason Xcode started complaining that it couldn’t find the FBSDKCoreKit frame work.

Well never fear my fellow iOS developers. I found the answer on Stackoverflow. http://stackoverflow.com/a/37329239/339427

Here is a look at what’s in my pod file.

platform :ios, '9.0'
use_frameworks!

target "MyTarget" do
    pod 'FBSDKCoreKit'
    pod 'FBSDKLoginKit'
    pod 'FBSDKShareKit'
end

Here is the answer I found in the stackoverflow post that helped get things working again. 

Answer from: Mihriban Minaz
After updating Cocoapods 1.0.0, I deleted pod.lock and installed the current stable pod versions (4.7.0 to 4.11.0) of FBSDKCoreKit, FBSDKLoginKit, FBSDKShareKit

Then i encounter the same error. What i did was:

  1. Added Header Search Paths Build Settings in Xcode:

    "${PODS_ROOT}/Headers/Public/Facebook-iOS-SDK\"
    "${PODS_ROOT}/Headers/Public/Facebook-iOS-SDK/FacebookSDK\"
    "${PODS_ROOT}/Headers/Public/FBSDKCoreKit\"
    "${PODS_ROOT}/Headers/Public/FBSDKCoreKit/FBSDKCoreKit\"

Then i still had error for another file. Because XCode is using prebuild frameworks.

FBSDKCoreKit/FBSDKCopying.h not found

  1. Clean Build -> ⇧⌘K (Shift + Command + K) – to clean builded frameworks.
  2. Clean Build Folder -> ⌥⇧⌘K (Option+Shift+Command+K)
  3. Close Xcode // important! – Otherwise it recreate the DerivedData for the current open project automatically
  4. Run this command in terminal

    rm -rf ~/Library/Developer/Xcode/DerivedData
  5. Open XCode and build successfully

 

Don’t just do something, stand there

The worst thing I ever did for my back was become a full time Software Engineer. It’s a constant battle because for that long is not good for you. The last few years I make sure and drink a lot of water and coffee so I’m forced to leave the desk to go to the rest room or fill up my cup to keep the justices flowing. Another thing that has really help is getting an adjustable desk and chair. This way I can stand for 20 – 30 mins and then take a break.

Here are 5 health benefits to having this setup as sited by Smithsonian.com

  • Reduced Risk of Obesity
  • Reduced Risk of Type 2 Diabetes and Other Metabolic Problems
  • Reduced Risk of Cardiovascular Disease
  • Reduced Risk of Cancer
  • Lower Long-Term Mortality Risk

Needless to day … get a standing desk. I also find that it helps me focus more on the task at hand.

Below I’ve shared the “electric” adjustable standing desk that I use every day, the chair that I use when I do sit and the computer monitor arms that I bought. They won’t break the bank and the quality is good enough that you can rely on them to work for you for a long time.

LexMod Attainment Drafting Stool, Brown
ApexDesk 71
Loctek Heavy Duty Gas Spring Dual Arm Desk Mounts Fits 10
programming algorithm books

How do I learn algorithms and data structures?

Great Answer from:  Hounshell

Clubs feature for League of Legends

I was really excited to see this. This video from an article on Game Spot talks about the coming Clubs feature that I’ve been working on with my team at Riot. Here is the full article talking about a lot of cool things that are coming to League of Legends http://www.gamespot.com/articles/introducing-the-new-league-of-legends/1100-6434200/

League of Legends photo

About Matthew Wallace

The lowdown on Matthew Wallace:
I’ve been a  software engineer for more than a decade. The technologies and languages I specialize in are many. Problem solving is something I really enjoy.

Languages I work in: Swift, Objective-C, Actionscript, Java, Ruby, Python, C++, Javascript

Niche Technologies that I work in: Video streaming platforms using Wowza (Java), FMS, WebRTC. I also have done realtime alert and chat systems using the same technologies such as FMS, XMPP, and others.

I tend to work in three main areas. Desktop, Web, and Mobile application development.

What you will get out of this:
My website is meant to showcase things I’m working, things I’m learning or interested it and also if you are looking for a software engineer, you’ve come to the right place. Feel free to reach out. I’d love to hear about what you are working on and what need I can fill or problem I can help solve.