Simulate different network conditions on iOS simulator

When enabled, the Network Link Conditioner can change the network environment of the iPhone Simulator according to one of the built-in presets:
  • EDGE
  • 3G
  • DSL
  • WiFi
  • High Latency DNS
  • Very Bad Network
  • 100% Loss

You can control the internet downlink/uplink bandwidth. BitTorrent/UTorrent some times won’t respect the upload limit so network-link-conditioner will control it.

Advertisements

CoreData: error: (19) PRIMARY KEY must be unique

Set the Z_MAX to largest Z_PK value in the corresponding table.

UPDATE "main"."Z_PRIMARYKEY" SET "Z_MAX" = n where "Z_ENT" = n

Cited from: why is this code raising the coredata error 19 primary key must be unique

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 25,000 views in 2012. If each view were a film, this blog would power 6 Film Festivals

Click here to see the complete report.

Three20 Framework compile time issues with Xcode 4

Do the following to fix the Three20 framework compile time isssues with Xcode 4

Protect.command

Remove  cd ${CONFIGURATION_BUILD_DIR}${PUBLIC_HEADERS_FOLDER_PATH}
Add ${CONFIGURATION_BUILD_DIR}/..${PUBLIC_HEADERS_FOLDER_PATH}

Paths.xcconfig

Remove HEADER_SEARCH_PATHS     = $(STDLIB_HEADERS) “$(CONFIGURATION_BUILD_DIR)/../three20”
Add HEADER_SEARCH_PATHS     = $(STDLIB_HEADERS) “$(CONFIGURATION_BUILD_DIR)/../../three20”

Main project build settings

OTHER_LDFLAGS = (
    “-ObjC”,
    “-licucore”,
    “-all_load”,
);

Blogged with the Flock Browser

XCode 4: Wireless iPhone/iPad app distribution (OTA)

XCode 4 seems to be doing something different from XCode 3.x.

Do the following steps

Add Entitlements file and set the key value pair for get-task-allow (Can be debugged) to NO.

Go to Target build settings, under the Code Signing Entitlements section, add the Entitlements.plist under the “Release” setting and ensure that your Ad Hoc Provisioning profile is selected for “Release” under Code Signing Identity.

Create .ipa and .plist files

  1. Edit scheme and select destination to device.
  2. Archive the project (Product -> Archive).
  3. Go to Archives section in Organizer window.
  4. Select the archived distribution file
  5. Click on share… button
  6. Point the identity dropdown to respective Ad Hoc Provisioning profile
  7. Click Next
  8. Select the check box (Save for Enterprise Distribution)
  9. Fillup the fields (Application URL should point to the .ipa file (complete url))
  10. Click on save button (It will create .ipa (app) and .plist (manifest) files)


Create an index.html file similar to the following

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
        “http://www.w3.org/TR/html4/loose.dtd”&gt;
<html>
<head>
<title>My Cool app</title>
</head>
<body>
<ul>
    <li><a href=”http://mycoolapp/build/distribution.mobileprovision”&gt;
                Install Example Provisioning File</a></li>
    <li><a href=”itms-services://?action=download-manifest&url=http://mycoolapp/build/app.plist”>
                Install Example Application</a></li>
</ul>
</body>
</html>

Check whether the app.plist contain the full url that points to the .ipa file

Place the files in the server (http://mycoolapp/build/)

Launch the browser in the device and point to http://mycoolapp/build/index.html
Download the provisioning profile and the application.

Reference:

http://jeffreysambells.com/posts/2010/06/22/ios-wireless-app-distribution/

http://www.paradeofrain.com/2010/11/taking-the-pain-out-of-ad-hoc-testing/

Blogged with the Flock Browser

XCode 4: Wireless iPhone/iPad app distribution

XCode 4 seems to be doing something different from XCode 3.x.

Do the following steps

Add Entitlements file and set the key value pair for get-task-allow (Can be debugged) to NO.

Go to Target build settings, under the Code Signing Entitlements section, add the Entitlements.plist under the “Release” setting and ensure that your Ad Hoc Provisioning profile is selected for “Release” under Code Signing Identity.

Create .ipa and .plist files

  1. Archive the project (Product -> Archive).
  2. Go to Archives section in Organizer window.
  3. Select the archived distribution file
  4. Click on share… button
  5. Point the identity dropdown to respective Ad Hoc Provisioning profile
  6. Click Next
  7. Select the check box (Save for Enterprise Distribution)
  8. Fillup the fields (Application URL should point to the .ipa file (complete url))
  9. Click on save button (It will create .ipa (app) and .plist (manifest) files)


Create an index.html file similar to the following

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
        “http://www.w3.org/TR/html4/loose.dtd”&gt;
<html>
<head>
<title>My Cool app</title>
</head>
<body>
<ul>
    <li><a href=”http://mycoolapp/build/distribution.mobileprovision”&gt;
                Install Example Provisioning File</a></li>
    <li><a href=”itms-services://?action=download-manifest&url=http://mycoolapp/build/app.plist”>
                Install Example Application</a></li>
</ul>
</body>
</html>

Check whether the app.plist contain the full url that points to the .ipa file

Place the files in the server (http://mycoolapp/build/)

Launch the browser in the device and point to http://mycoolapp/build/index.html
Download the provisioning profile and the application.

Reference:

http://jeffreysambells.com/posts/2010/06/22/ios-wireless-app-distribution/

http://www.paradeofrain.com/2010/11/taking-the-pain-out-of-ad-hoc-testing/

Blogged with the Flock Browser

Tags: , , , , , ,

How to remove all .svn folder from source code in Linux / Mac?

Cited from: http://www.techiecorner.com/154/how-to-remove-all-svn-folder-in-linux-mac/

find ./ -name “.svn” | xargs rm -Rf

Blogged with the Flock Browser