Monday, July 18, 2022

Command PhaseScriptExecution failed with a nonzero exit code - RN

 When I was setting the RN for iOS on my mac, entered into the following issue "Command PhaseScriptExecution failed with a nonzero exit code", tried all the google links and supports. 🤔

Tried various solutions given to cleanup pods, npm, xcode cleanup, etc.. nothing works. 😕

Just noticed the folder name on the top structure of my source file has the space. "Dev Center", i have changed to "DevCenter", now I have cleanup pod reinstalled and tried. All went well and started the React Native app finally.👍

Friday, September 11, 2020

JAMF - Apple Device Management

 

JAMF is like Device Management tool used for Apple Family products.

Admin could control your apps what to use, what to block, monitor whole machine remotely using the software.

Even you are admin user for that Mac, JAMF still controlled with constraints to use default applications. 

Ref:

https://www.jamf.com/

https://community.connection.com/what-is-jamf/

Friday, September 4, 2020

TestFlight Usage

 https://apps.apple.com/us/app/testflight/


Test Flight used for BETA testing of your app before App Store submission.


It will be uploaded from Xcode using the Distribution Profile. It will go Apple review, turn around time will take min 2days for First Version upload, subsequent build no. increase will be auto approved sooner. Any further increase in version will take 2 days for sure.

 (E.g) 1. 0 (1) - 2days

1.0 (3), (4), .. will be quicker

1.1 / 2.0 … will take time for review.


Any uploaded Builds will go auto expire for Build Shared in the Test Flight 90days (as on). But caveat is, those who downloaded and using the build will not break, it will still work without issue. Any new builds posted will give Notifications to the user, but not force to upgrade from TestFlight.


If we are plan to force upgrade, we need to right the logic in the Service on launch and alert the user for upgrade, no other choice with Expiry build with test flight.


Above are experience with my project.

Thursday, March 29, 2018

Backup Your Google stuff

Backup Your Google stuff:

When google come up with storage restriction to 15GB for all our google products to single source of storage, and brought the extra storage for sale, i was stuck and thinking.. 🤔

How to get back all my docs, photos and other stuff, if they block after some time. After searching multiple sites, i got the below links helps us to download what you want or whole.

It has option of select and trigger, google will notify us after done, that is nice thing 👍. We can zip in different size on the request, and will get link to download but will expire after some days. 😊

So, backup it up if more personal..  or buy extra storage 🤑.. 

https://takeout.google.com/settings/takeout

Thursday, October 29, 2015

iMovie tool to edit multiple mov clips

iMovie tools helped me to edit the multiple screen recorded mov file using quicktime player. Later to collage and add audio to mov file easily.


1. Open iMovie
2. Create New Movie
3. Select Import Movie in the left pane or in the tool bar.
4. Select file you want to edit.
5. After import you should see the video on the clip imported to left pane. You cannot edit the video to right side now.
6. Goto left pane. Double click you should see [] Yellow color clip section. You drag what you want to add below pane for (that is not required now). So, just select full clip in the left pane, add click [+] you should see in the yellow selected end brace. 
7. Now all the selected clip will be added below.
8. You should see, to the right side pane also updated with clip you selected. (our case full).
9. To the right pane (new video we selected now), you should see the mic to left side on the video.
10. Click that mic, you should see the record button.

iOS Date and Time format details


Date Format Options are as follows:
Now you want all the string formats that can be used with NSDateFormatter. Here is that
a: AM/PM
A: 0~86399999 (Millisecond of Day)
c/cc: 1~7 (Day of Week)
ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat
cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
d: 1~31 (0 padded Day of Month)
D: 1~366 (0 padded Day of Year)
e: 1~7 (0 padded Day of Week)
E~EEE: Sun/Mon/Tue/Wed/Thu/Fri/Sat
EEEE: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday
F: 1~5 (0 padded Week of Month, first day of week = Monday)
g: Julian Day Number (number of days since 4713 BC January 1)
G~GGG: BC/AD (Era Designator Abbreviated)
GGGG: Before Christ/Anno Domini
h: 1~12 (0 padded Hour (12hr))
H: 0~23 (0 padded Hour (24hr))
k: 1~24 (0 padded Hour (24hr)
K: 0~11 (0 padded Hour (12hr))
L/LL: 1~12 (0 padded Month)
LLL: Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec
LLLL: January/February/March/April/May/June/July/August/September/October/November/December
m: 0~59 (0 padded Minute)
M/MM: 1~12 (0 padded Month)
MMM: Jan/Feb/Mar/Apr/May/Jun/Jul/Aug/Sep/Oct/Nov/Dec
MMMM: January/February/March/April/May/June/July/August/September/October/November/December
q/qq: 1~4 (0 padded Quarter)
qqq: Q1/Q2/Q3/Q4
qqqq: 1st quarter/2nd quarter/3rd quarter/4th quarter
Q/QQ: 1~4 (0 padded Quarter)
QQQ: Q1/Q2/Q3/Q4
QQQQ: 1st quarter/2nd quarter/3rd quarter/4th quarter
s: 0~59 (0 padded Second)
S: (rounded Sub-Second)
u: (0 padded Year)
v~vvv: (General GMT Timezone Abbreviation)
vvvv: (General GMT Timezone Name)
w: 1~53 (0 padded Week of Year, 1st day of week = Sunday, NB: 1st week of year starts from the last Sunday of last year)
W: 1~5 (0 padded Week of Month, 1st day of week = Sunday)
y/yyyy: (Full Year)
yy/yyy: (2 Digits Year)
Y/YYYY: (Full Year, starting from the Sunday of the 1st week of year)
YY/YYY: (2 Digits Year, starting from the Sunday of the 1st week of year)
z~zzz: (Specific GMT Timezone Abbreviation)
zzzz: (Specific GMT Timezone Name)

Z: +0000 (RFC 822 Timezone)

Saturday, August 16, 2014

CD got stuck not ejecting out from my MAC

I got the CD from the Library for my kid, and tried to play in my mac machine. Boom, it is not recognized by the mac and got stuck. Tried restarting the machine, nothing works. Finally, got into the Applications > Utility > Disk Utility. CD got ejected automatically.

Credit:
http://www.mactricksandtips.com/2009/01/ejecting-dvds-cds-from-your-mac.html

Wednesday, April 2, 2014

how to find unused images from Xcode


#!/bin/sh
PROJ=`find . -name '*.xib' -o -name '*.[mh]'`

for png in `find . -name '*.png'`
do
    name=`basename $png`
    if ! grep -q $name $PROJ; then
        echo "$png is not referenced"
    fi
done


Credit:
http://mfaizanshaikh.wordpress.com/2012/12/17/how-to-remove-unused-images-from-xcode-project/

Wednesday, October 16, 2013

SVN missing in Mac OS X 10.8

After upgrading to Mountain Lion am unable to launch my SVNX tool (used to access SVN source control). Then I figured out Subverion library are not coming with by default with OS upgrade. Fix is given below:
Credit: http://blog.grapii.com/2012/08/svn-missing-in-mac-os-x-10-8-mountain-lion/

Old iOS SDKs in Xcode 5

How to build your app with sdk6.1 in Xcode 5. Because when you want to debug the iOS7 device with XCode 4 is not possible.

Credit: http://blog.spacemanlabs.com/2013/09/how-to-support-old-ios-sdks-in-xcode-5

Wednesday, April 10, 2013

Nexus 4 - config email signature

Credit:

http://www.dummies.com/how-to/content/how-to-create-an-email-signature-on-your-nexus-7.html

Monday, February 4, 2013

Get iOS Device Platform



#include
#include


/*
 Platforms
 iPhone1,1 -> iPhone 2G
 iPhone1,2 -> iPhone 3G
 iPhone2,1 -> iPhone 3GS
 iPhone3,1 -> iPhone 4 GSM
 iPhone3,3 -> iPhone 4 CDMA
 iPhone4,1 -> iPhone 4S
 iPod1,1   -> iPod touch 1G
 iPod2,1   -> iPod touch 2G
 iPod3,1   -> iPod touch 3G
 iPad1,1   -> iPad (Wifi or GSM)
 iPad2,1   -> iPad 2 Wifi
 iPad2,2   -> iPad 2 GSM
 iPad2,3   -> iPad 2 CDMA
 */
+ (NSString *) devicePlatform
{
    size_t size;
    sysctlbyname("hw.machine", NULL, &size, NULL, 0);
    char *machine = (char *)malloc(size);
    sysctlbyname("hw.machine", machine, &size, NULL, 0);
    NSString *platform = [NSString stringWithCString: machine encoding: NSUTF8StringEncoding]; 
    free(machine);
    return platform;
}

iOS6.1 - Tested.

Friday, February 1, 2013

Unit Test Case Configuration in Xcode 4

https://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/UnitTesting/00-About_Unit_Testing/about.html

Saturday, January 5, 2013

UILabel's adjustsFontSizeToFitWidth and minimumFontSize play nice with multi-lined

Credit:

https://gist.github.com/2766074

// Original code from http://stackoverflow.com/a/4383281/463892

Code:

- (CGFloat)fontSizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size minimumFontSize:(CGFloat)minimumFontSize {
   
    CGFloat fontSize = [font pointSize];
   
    CGFloat height = [self sizeWithFont:font constrainedToSize:CGSizeMake(size.width,FLT_MAX) lineBreakMode:UILineBreakModeWordWrap].height;
   
    UIFont *newFont = font;
   
    //Reduce font size while too large, break if no height (empty string)
   
    while (height > size.height && height != 0 && fontSize > minimumFontSize) {
       
        fontSize--;
       
        newFont = [UIFont fontWithName:font.fontName size:fontSize];
       
        height = [self sizeWithFont:newFont constrainedToSize:CGSizeMake(size.width,FLT_MAX) lineBreakMode:UILineBreakModeWordWrap].height;
       
    };
   
    // Loop through words in string and resize to fit
   
    for (NSString *word in [self componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]) {
       
        CGFloat width = [word sizeWithFont:newFont].width;
       
        while (width > size.width && width != 0 && fontSize > minimumFontSize) {
           
            fontSize--;
           
            newFont = [UIFont fontWithName:font.fontName size:fontSize];
           
            width = [word sizeWithFont:newFont].width;
           
        }
       
    }
   
    return fontSize;
   
}

Friday, September 21, 2012

iOS Crash logs links

Reference:

http://bjango.com/help/crashlog/

Tuesday, June 26, 2012

svn recursive delete

Refer:
http://www.crainbandy.com/linux/recursively-remove-svn-directories-2

Sunday, March 18, 2012

Resize image for buttons

Ref: http://iphonedevelopertips.com/user-interface/ios-5-uiimage-and-resizableimagewithcapinsets.html