Error Previewing a Child Theme

This one took me a minute to figure out. I had worked on a child theme in WordPress, but ran into the following error when I tried to use Live Preview:

Twenty Seventeen requires at least WordPress version 4.7. You are running version 4.5.20. Please upgrade and try again.

The strange thing is the version of WordPress version 5.x not 4.5.20. Obviously there was a version conflict somewhere. Googling around produced no hits, that made sense.

The cause was that the version of WordPress on the production site was behind the version on the development site. Who knew? So, I updated the production site to the latest version and the problem went away.

I’m posting this so that it can help others.

Command CompileAssetCatalog failed with a nonzero exit code

pulling out hair

Oh my good gravy!

I was working on a cleanly installed Mac after migrating user accounts onto it. My account is not the primary admin account (eg. UID 501). For some reason Xcode was installed with all the permissions set to that primary user, who has yet to log onto this Mac!

I have been having multiple issues trying to get Xcode to build on this Mac — my traveling Mac. I like to leave my bread and butter Mac at home and travel with an 11 inch MacBook Air. Primarily because any other Mac cannot be opened on an airplane, in Economy. I cannot afford to fly business class since the Indie-Apocalypse hit in 2014.

So the owner permissions were all f’ed up, where Xcode does it’s build business. The last straw was the “Command CompileAssetCatalog” failure.

The fix is to change the permissions on the Xcode folder in my own home Library (which all files should be all owed my username.) Pro Tip: replace your username where you see mine — tmitra

cd /Users/tmitra/Library/Developer/Xcode/UserData
ls -la

Checking the ownership of this folder showed I was not the owner. So I stepped back and fixed the permissions on the Xcode directory here:

sudo chown -R tmitra ~/Library/Developer/Xcode

Build and Run.

FWIW I also had to fix permissions elsewhere:

Error: Failed to create temporary directory: /Library/Developer/Xcode/UserData/IB Support/Simulator Devices/

sudo chown -R tmitra ~/Library/Developer/CoreSimulator/Devices

“tmp” couldn’t be removed because you don’t have permission to access it

sudo chown tmitra /Users/tmitra/Library/Developer/Xcode/DerivedData

Your mileage may vary.

Hire Tim

Tim Mitra avatar

A few people have asked about hiring me on contract. So I put together this post:

I am and independent developer and designer working in iOS and web technologies. I have been involved in many app deployments on the AppStore, as the main idea guy or architect of apps; doing client work and some personal apps. Collectively we had over 500K downloads over the last 5 years, which I think it’s better than most. My background is in the graphic arts, print and publishing, and the IT work involved in those trades. However I have always made stuff and consider myself a solutions provider – my unique ability.

While I do wrangle developers, writers and artists, I spend the majority of my time actually writing code and assembling the apps. I am also the person who deals with the actual submission to the AppStore. So I can start an app from pen and paper sketches all the way to the App Store and analytics. While doing so I make stops to assemble copy, create graphics & UX, write the code, assemble the apps, localization, distribute the builds, wrangle git & branches, write server APIs, product management, as well as marketing and promotions. Soup to nuts as any indie IOS developer should be (and hiring out help on big projects).

I am located in Toronto Canada, where I try to run a small development company. I teach introductory courses on iOS development. I write for raywenderlich.com and I founded and host the More Than Just Code podcast.

Tim

resume and references available on request.

New iPhone 6 screen shots for ITC

I can here you say, “Everybody knows this already.” However for those of you who don’t (non developers, artists maybe) there are the sizes needed to create new screen shots for iTunesConnect app metadata and marketing. Apple hasn’t produced an iOS 8/iPhone 6 transition guide and the Mobile HIG hasn’t been updated, yet.

iPhone 6 – 755 x 1334

iPhone 6 Plus – 1242 x 2208

The iPhone 6 Plus also has landscape mode so you may want to create screen shots for that mode as well.

 

Supporting StoreKit Affiliate ID in iOS 8 w/o breaking iOS 7

As you may already know, iOS 8 finally supports loading a StoreSheet complete with your Affiliate ID. This way you can keep users in your app without sending them over to iTunes or App Store apps and still get commissions from Apple. However if you want to support iOS 7 users (for the time being) you will need to load the Store Kit Product Parameters with the playlist only – or your app will crash. So naturally check for NSFoundationVersionNumber to test for version iOS 7.1 or 8.0 and load the correct parameters.

You can watch the WWDC 2014 Video about this new feature.

Here’s the code using contstants to hold IDs for your playlist, affiliate and campaign IDs.

– (void)openAppStore:(id)sender {

    // Initialize Product View Controller

    SKStoreProductViewController *storeProductViewController = [[SKStoreProductViewControlleralloc] init];

    // Configure View Controller

    [storeProductViewController setDelegate:self];

NSDictionary *parameters;

    if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_7_1) {

        // Load resources for iOS 7.1 or earlier

        parameters = @{SKStoreProductParameterITunesItemIdentifier:kPlaylistID};

    } else {

        // Load resources for iOS 8 or later

        parameters = @{SKStoreProductParameterITunesItemIdentifier:kPlaylistID, SKStoreProductParameterAffiliateToken:kAffiliateID, SKStoreProductParameterCampaignToken:kCampaignID};

    }

[storeProductViewController loadProductWithParameters:parameters completionBlock:^(BOOL result, NSError *error) {

if (error) {

NSLog(@”Error %@ with User Info %@.”, error, [error userInfo]);

} else {

            // Present Store Product View Controller

            [self presentViewController:storeProductViewController animated:YES completion:nil];

}

}];

}

 

Overexposed and the Attack of the Clones

IMG_1317Our 5th installment of the More Than Just Code podcast is now available. In this episode we discuss the impact of the leaked nude celebrity photos, apparently stolen from their private iCloud accounts. Beyond the social issue of these lady’s privacy violations, we discuss the nerd’s perspective of how to access and strengthen your passwords with apps like AgileBits’ 1Password app for desktop and mobile devices. We also touch on 2-factor authentication for online accounts.

Mark sent in some photos of a mystery building that Apple has set up on De Anza College in Cupertino, near where the Sept 9th Apple Press Conference will be held. We all speculate on what products will be revealed and what their impact will be. Will it be a new iPhone 6, iWatch or AppleTV.

Jaime brings forth an new example of iOS 8’s extensibility in the form of a custom keyboard from Minuum. Mark brings up Swing Copters again and Tim dives right in. Aaron praises and laments the Overcast podcast app. Tim discusses the new Star Wars Commander app and compares it to Clash of Clans.

[button link=”https://itunes.apple.com/ca/podcast/mtjc-podcast-podcast-about/id906987516?mt=2″ bg_color=”#cf93cf”]Listen to the Podcast Here[/button]

Episode 5 Show Notes:

Google 2-step authentication
FaceBook Tweaks
Celebrity photos leaked
Creepy Men
How to step up Two Factor Authentication on iCloud
TechnoCreep by Thomas Keehnan
Minuum Keyboard
App Annie App Ranking, Intelligence & Marketplace
iPassword for Mac
iPassword for iOS
Star Wars Commander
Swing Copters

The Other App Store – EP #3 of the MTJC Podcast is out.

dennis-2The third installment of More Than Just Code is out. In this episode, we dig into what it costs to develop an app, from the developers perspective. We add in some specific challenges and benefits for remote working – the access to skilled developers and app creationists vs the benefits of working in an office environment; complete with pin-ball foosball tables and BBQs.

We discuss the latest game installment from Dong Nguyen creator of Flappy Birds. How the app, Swing Copters, is being introduced and how and why Flappy Birds works and went viral. This leads us to Tom Hanks (and @AppleStore) getting behind Hanx Writer for iPad. Aaron then climbs the soapbox the explain how the Other App Store promotes and perpetuates the class differences between large interests and indie developers.

We then misguidedly (as usual) discuss Aaron’s blog post on the limitations of size classes in iOS 8. Jaime and Aaron give us their App Picks of the week (Grafio and Camoji). We congratulate Mark on Scales & Modes Scales & Modes for iPad being featured on the App Store (other?) and Tim’s debut on RayWenderlich.com – a tutorial site for developers of all levels.

You can find the podcast here.

Enjoy

Episode 3 Show Notes:

Craig Hockenbury Stackoverflow How much does it cost to develop an app
Chiu-Ki Chan @chiuki – Intro to Android for iOS developers – 3601Dev 2013
Remote: Office Not Required” by 37 Signals
Hitcents (builders of Hanx Writer)
Limitations of iOS 8 Size Classes (correct please)
Grafio app by Ten Touch Ltd.
Camoji app by Leo Me, Inc.

Announcing: Tim’s first article on RayWenderlich.com

I’m pleased to announce that my first article is being published today on raywenderlich.com. The RW blog is focused on producing high quality programming tutorials geared toward all levels of developers so that “we can all make awesome apps“. I have been following the RW blog since I started developing apps, around 2010 or so. I’ve been proud to support the RWTeam and blog as a student by buying their publications and singing their praises. I am extremely proud now to be contributing to the growth of other developers by contributing to the site:

You can find my premier article here:

How to Make Game Music for Beginners

Enjoy!

IMG_0162

Sneak peek at the upcoming MJTC Podcast

Here’s a sneak peek at our brand new podcast: More Than Just Code.

Each week, Aaron VeghJaime LopezMark Rubins and myself, Tim Mitra, will convene across the continent and discuss iOS and Mac development.

In the first episode we discuss:

  • Brent Simmons kicking off a firestorm of discussion around being an indie iOS developer.
  • A discussion of Jared Sinclair’s blog post on his indie earnings.
  • New technologies and frameworks announced at WWDC: Swift, adaptive layouts, CloudKit
  • And some type of fruit device you may or may not be sporting on your wrist.

Here’s the URL to the feed. You can launch iTunes on your desktop, select Subscribe to Podcast and paste in the URL:

[button link=”https://itunes.apple.com/ca/podcast/mtjc-podcast-podcast-about/id906987516?mt=2″ bg_color=”#cf93cf”]Subscribe Here[/button]

The podcast will be available shortly in the iTunes store (fingers crossed)

Comments are welcome below.

WWDC 2014 Keynote – what to expect

I posted a couple of images to the WWDC 2014 Glassboard page, for a couple of WWDC 2014 first timers. I’m reposting them here for those of you who haven’t heard about the board.

You can join the WWDC 2014 Glassboard discussion here: http://bit.ly/wwdc2014glassboard

Keynote line up and Badge pickup – I checked the timestamps on my photos from last year’s keynote. If you can pick up your Badge on Sunday. The line up starts early in the morning – I mean early! We went down at 6 am last year to join friends who lined up at 11pm Sunday. Apple let us into the building to line up on the second level at 7:15 am. There’s coffee, juices and pastries. We had to wait in the crowded halls until 9:30 am when they let us into the main room for the the keynote. Like others have said (I couldn’t find the old thread) you can line up after 9 am and you might also get into the main room. Lining up for the keynote is an experience like no other (except maybe the line up to Star Wars Episode VII). If you can travel down with some other devs, meet some in the line up. You can pick up your badge on Monday morning, but get it out of the way on Sunday if you can.

line2

the keynote line is on the right side and wraps around the building. The line up on the left is the Monday morning badge pick up line.

 line3

 This is the front of the line inside at 7:20 am.

escalator

Going up the escalator at 9:30am (WWDC 12)

keynote

This is a close as you can get. Those seats in front are the VIP section. (those are friends who got moved up to VIP with their boss)

steve-wwdc

This was Steve at the keynote. Again from the second row, behind the VIPs. c WWDC 11?