Tuesday, September 15, 2015

Xcode 6 - iPhone Simulator Folder

In Xcode 6, the location of the applications on the iPhone Simulator has changed (thanks to weimenglee). Prior to iOS 8, the location of the Documents folder of your app can be found here:


~/Library/Application\ Support/iPhone\ Simulator/<iOS_Version>/Applications/<application_id>/Documents 

In xCode 6, the location of the simulator has changed to when resource files are required to put in [NSBundle mainBundle]:

~/Library/Developer/CoreSimulator/Devices

Use Finder->Go->Go To Folder, we can see all device's UUID

 
Each folder correspond to a specific iPhone Simulator. To know which folder corresponds to which simulator, use the following command in Terminal:

~$ xcrun simctl list

Then all simulator devices are listed.

You can then go into this folder and the following path shows the folder that contains all the applications installed on this simulator:

~/Library/Developer/CoreSimulator/Devices/Device_UUID/data/Containers/Data/Application/

You can now locate your specific application and find the Documents folder:

~/Library/Developer/CoreSimulator/Devices/Device_UUID/data/Containers/Data/Application/App_ID/Documents/

Friday, September 11, 2015

Perl Problem Fix on Mac OS 10.10 Yosemite

When upgrade Mac OS X to Mac OS 10.10 Yosemite,

dyld: Library not loaded: /System/Library/Perl/5.12/darwin-thread-multi-2level/CORE/libperl.dylib
Referenced from: /Applications/someApp
Reason: image not found
Trace/BPT trap: 5
because there are some new perl coming with this OS. For example,

 $ ls -l /usr/bin/perl*
-rwxr-xr-x   1 root  wheel  58416 Sep  9  2014 /usr/bin/perl
-rwxr-xr-x   1 root  wheel  35600 Sep  9  2014 /usr/bin/perl5.16
-rwxr-xr-x   1 root  wheel  35600 Sep  9  2014 /usr/bin/perl5.18
-rwxr-xr-x  38 root  wheel    811 Sep  9  2014 /usr/bin/perlbug
...
We might install a perl through MacPort in opt/...  If so, we can uninstall it

 $ sudo port uninstall perl
and in /usr/local/bin

 $ sudo rm perl*
Now symlink the Perl 5.18 

 $ sudo ln -s /System/Library/Perl/5.18 /usr/local/bin/perl

Friday, September 4, 2015

Free Book "Fabless: The Transformation of the Semiconductor Industry"

A free PDF version of the book is being offered. It tells really nice history of the fabless semiconductor ecosystem.
Fabless: The Transformation of the Semiconductor Industry-book-cover-final-jpg
You can access it via the attachment at the bottom of this wiki:

Only registered SemiWiki members can access this wiki. You may join with:

Followers

About Me

My photo
HD Multimedia Technology player