transfer iOS App distribution privilage.

Posted on

1. each distribution certificate binds with a private key which is used to generate the certificate from Keychain.
2. export the private key described with 1.
3. import the exported private key described with 2. in new developer’s Mac OS.
4. new developer should down load the distribution certificate from iOS Dev Center. (of course the developer should be invited as a member of team of development before all).

Mac OS X mavericks with Subversion + Apache

Posted on Updated on

  1. should rebuild subversion to x86_64 architecture
    • make link for Xcode, because subversion detect build tool chain with a specific rule but Mavericks as no such path for Xcode.

% sudo ln -s /Applications/  /Applications/

    • download svn (v1.8.3) download svn 1.6.18 (1.8.3 cannot work)
    • make and make install
% cd ~/Downloads/subversion-1.6.18
% cd ./configure
% make
    • copy and to /usr/libexec/apache2 or anywhere you want to locate the module binary files, this would be referenced in httpd_server_app.conf for Web Server.

% cp subversion/mod_dav_svn/.libs/ /usr/libexec/apache2

% cp subversion/mod_authz_svn/.libs/ /usr/libexec/apache2

  1. in /Library/Server/Web/Config/apache2/httpd_server_app.conf
    • add

LoadModule dav_svn_module libexec/apache2/
LoadModule authz_svn_module libexec/apache2/

    • notice the order, if loaded after, you got the error as launch web server.

httpd: Syntax error on line XXX of /Library/Server/Web/Config/apache2/httpd_server_app.conf: Cannot load /usr/libexec/apache2/ into server: dlopen(/usr/libexec/apache2/, 10): Symbol not found: _dav_svn_split_uri\n  Referenced from: /usr/libexec/apache2/\n  Expected in: flat namespace\n in /usr/libexec/apache2/

Auto increment build number by run script. (Xcode)

Posted on

1. to add key in your Project-info.plist
CFBuildNumber, CFBuildDate
2. add scripts to your run script (in Xcode)
CFBuildNumber=$(/usr/libexec/PlistBuddy -c “Print CFBuildNumber" $myPlist)
CFBuildNumber=$(($CFBuildNumber + 1))
/usr/libexec/PlistBuddy -c “Set :CFBuildNumber $CFBuildNumber" $myPlist
/usr/libexec/PlistBuddy -c “Set :CFBuildDate $CFBuildDate" $myPlist
echo “build number: " $CFBuildNumber

3. get info from Project-info.plist and show on somewhere.
NSString * version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"];
NSString * buildNo = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBuildNumber"];
NSString * buildDate = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBuildDate"];

Can’t debug iOS 4.2 with iPodTouch 3G in Xcode 4.3

Posted on

This is regards to debug by Xcode 4.3 and attempting to run on an earlier device (e.g. iPhone 3G, 2G, iPod 1st gen, etc)
Solution: Remove ‘Required Device Capabilities’ in XXXX-info.plist if wanting to support devices that run armv6 (e.g. the iPhone 3G).