Group Group Group Group Group Group Group Group Group Forums

Instruments Tutorial with Swift: Getting Started

Learn how to use Instruments to check for performance issues, memory issues, reference cycles, and more!

This is a companion discussion topic for the original entry at
1 Like

Hi, is a pity but, the downloaded code does not compile

@arcioneo I took Frosty’s starter project and updated it to the current version of Swift (Swift 2.2) — — it compiles and runs without errors or warnings. [Frosty, email brian at if you want the repo taken down.]

1 Like

You’re right, downloading it from the url you posted works, thanks a lot.

Much, much appreciated, Brian!!!


Please update syntax errors for swift 2.2 or 3.0 (better). although the compile time errors can be done fixed manually after converting to ‘latest swift syntax’

Updated starter project (Swift 2.3)


great tutorial, thanks!

Updated to Swift 3.

Using Swift 3.0, and I didn’t see a line called ImageIO_jpeg_Data when doing the unbounded growth section. Instead it is under < non-object >.

Hi, James Frost,
I met a trouble, I want to call rest api of Flickr, and I get the api key and secret,but I can’t get auth token,how can I get auth token with api key and secret in Flickr? I can’t find the solution in google and, can you help me?
Best regards,
Michael Fang

Hi, michael
maybe you could generate sample Flickr url search in here

input param “text” = cat, per_page = 30, and select change Output XML to JSON type
don’t forget to select do not sign call. after that you can Call the method to generate the url.

you will get like this:

api_key = 31ac8f42ccec0ddf1c9749f4ba2e3dd8

remember api_key change every day, so if you need to use the api in the next day, you need to regenerate the url again

We need a updated version of this tutorial.