Showing posts with label mac. Show all posts
Showing posts with label mac. Show all posts

Monday, June 19, 2017

Terminal : Commands of Daily Use

Hey folks,

Please have a look at some cool terminal commands


1. Show / hide Hidden Files : Do relaunch finder after you hit this command
$ defaults write com.apple.finder AppleShowAllFiles true / false


2. Copy Contents of folder to another
$ ditto <path of Source Folder> <Path of Destination Folder>
ditto /Users/admin/Documents/test /Users/admin/Documents/Swati/try


3. Zip a Folder
Zip -r <path of resultant zipped file> <Folder to be zipped>
$ zip -r test.zip  test 
Zip -r <path of resultant zipped file> <Folder to be zipped> -x <file not to be included in zip>
$ zip   -r  test.zip test  -x "*.DS_Store” 


4. Unzip archive
Unzip  <path of zipped file>
$ Unzip test.zip


5. Custom message on Login Window
Sudo defaults write  <path of login window> LoginwindowText "custom text"
$ sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "This is Swati's Mac.. "





6. Show AnyWhere option in GateKeeper of MAC OSX Sierra or Disable GateKeeper
Sudo spctl <prefixes>
$ sudo spctl --master-disable


7. Enable GateKeeper
Sudo spctl <prefixes>
$ sudo spctl --master-enable


8. Download content from any url
Curl -0 <url>
$ curl -0 http://file-to-be-downloaded.flv


9. To know the network connectivity
Ping <host>
$ ping google.com


10. Lets talk
say "your text"
$ say "Hello Swati"



Hope its useful :)



Sunday, June 18, 2017

Dealing with Gatekeeper in OSX Sierra

Hi all,

Found something interesting in OSX Sierra. The gate keeper showed only 2 options





No Anywhere option in Gatekeeper. :(

But you can make it visible by running command in Terminal. So to

Disable GateKeeper
sudo spctl --master-disable


Enable GateKeeper
sudo spctl --master-disable



Thanks for reading :)

Tuesday, June 13, 2017

Appstore Build Create, Upload & Test

Hey Folks,

I know you guys know the process 😉
But its worth sharing what say!!!

Create AppStore Build
  • Open Project
  • Select Target
  • Click General 
    • Set Display Name Bundle Identifier, Version and Build.
  • Click Build Settings
    • Choose Appstore Provisioning Profile corresponding to Bundle Identifier.
    • For Release Scheme choose the Certificate corresponding to the provisioning profile.
    • Now click Target Selector next to Stop Button
    • Click Archive
      • Choose Build Configuration as Release
      • Tick mark on "Reveal Archive in Finder"
    • Click on Product 
      • Click Archive : This will start the build creation.
    • Choose Always Allow for Code-signing Popup
    • Build Succeeded Toast will be shown
    • An organizer will be visible which will show your archive.
    • Right Click to show in Finder
    • You will see <TARGET><DATE>, <TIME>.xcarchive
      • Right click to Show Package Contents
      • Products >> Applications >> Build_Display_NAME.app
      • Drag and Drop this .app file in iTunes
      • Right click on the app in iTunes and click Show In Finder
      • You will see the IPA for Appstore.
    Note:
    Sometimes SwiftSupport folder is not embedded under .app.
    But you need to do this if you give swift support in App.
    So follow these steps:
    • Create a Folder Test
      • Copy SwiftSupport Folder inside Test
      • Unzip ipa and add Payload folder here inside Test
      • Open Terminal
      • Type Command : $ zip -r Name.ipa Payload SwiftSupport -x "*.DS_Store"
      • -r is for adding and -x is for removing files
      • Enter
      • A new IPA is generated with SwiftSupport


    Upload AppStore Build using Application Loader


    • Open Latest Application Loader
    • Login with Apple ID


    • Choose your IPA that you wish to upload.



    • It will start reviewing your app.



    • Then it will show you the App details.
    • Check them and click Next.



    • Now its starts adding application.
    • Then it uploads package to Appstore.
    • Uploaded package to the Appstore.
    • Click Next.



    • Success message is displayed.
    • Click Done.



    View In iTunes Connect
    • Visit https://itunesconnect.apple.com/
    • Login with Apple Id
    • Click on My Apps
    • Click on your App
    • Goto Activity Tab
    • You will see your versioned app with text (Processing)
    • Once processing is done you will see the new versioned build under TestFlight Tab.
    • Now its available for testing.
    • You can add testers either via User and Roles section or via sending invitation emails to users under TestFlight tab.


    Happy Coding
    Enjoy Uploading and Testing 😀😁😃