Skip to content

Instantly share code, notes, and snippets.

@ashokds
ashokds / architecture armv7
Created May 25, 2021 01:05
Xcode12.4 - XCFramework - 12D4e xcodebuild
Xcode 12.4
Build version 12D4e
Ld /Users/first.last/Library/Developer/Xcode/DerivedData/DocuSignSDK-evtegtvqebfzzyftcqhotbjymzfa/Build/Intermediates.noindex/ArchiveIntermediates/DocuSignSDK/IntermediateBuildFilesPath/DocuSignSDK.build/Release-iphoneos/DocuSignSDK.build/Objects-normal/armv7/Binary/DocuSignSDK normal armv7 (in target 'DocuSignSDK' from project 'DocuSignSDK')
cd /Users/first.last/workspace/DocuSign-IOS-SDK-V2
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target armv7-apple-ios10.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk -L/Users/first.last/Library/Developer/Xcode/DerivedData/DocuSignSDK-evtegtvqebfzzyftcqhotbjymzfa/Build/Intermediates.noindex/ArchiveIntermediates/DocuSignSDK/BuildProductsPath/Release-iphoneos -F/Users/first.last/Library/Developer/Xcode/DerivedData/DocuSignSDK-evtegtvqebfzzyftcqhotbjymzfa/Build/Intermediates.noindex/ArchiveIntermediates/Doc
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
@ashokds
ashokds / resetXcode.sh
Created September 19, 2018 23:22 — forked from maciekish/resetXcode.sh
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
#!/bin/bash
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
open /Applications/Xcode.app
@ashokds
ashokds / NSZombieEnabled.md
Created October 24, 2017 20:38 — forked from JeOam/NSZombieEnabled.md
NSZombieEnabled

NSZombieEnabled is an environment variable which controls whether the Foundation runtime will use zombies. When zombies are enabled, a deallocated object's class is dynamically changed to be _NSZombie, and by default, the memory region is never marked as free, although this can be controlled separately(so, remember to disable NSZombieEnabled for Archived Release Build).

The end result is that, with zombies enabled, messages to deallocated objects will no longer behave strangely or crash in difficult-to-understand ways, but will instead log a message and die in a predictable and debugger-breakpointable way. This is the tool to use when trying to track down over-releases and premature releases.

Zombies will take effect for all Objective-C objects that are deallocated through normal means, including most Cocoa classes as well as user-created classes. On 10.4 and earlier, a rather important exception to this is most/all TollFreeBridged classes, as they are deallocated using CoreFoundation which NSZombieEnab

@ashokds
ashokds / gist:b2a5c1fbc73e7a94ad4212558a68a811
Last active September 20, 2017 23:59 — forked from beny/gist:8313959
Xcode tips

Core Data

  • -com.apple.CoreData.SQLDebug 1-3 - print all SQL queries called by Core Data
    • -com.apple.CoreData.Logging.stderr 1-3 - needed alongside with the SQLDebug from iOS 10+ because of new logging system, more on that in changelog
  • -com.apple.CoreData.SyntaxtColoredLogging YES - probably syntax colored logging (not tried)
  • -com.apple.CoreData.SQLiteDebugSynchronous 1 - preference controls some aspects of the SQLite store. See the "Configuring a SQLite Store's Save Behavior" section of the Core Data Programming Guide for details
  • -com.apple.CoreData.SQLiteIntegrityCheck 1 - the SQLite store does extra integrity checking
  • -com.apple.CoreData.MigrationDebug 1 - Core Data will log information about exceptional cases as it migrates data
  • -com.apple.CoreData.ThreadingDebug - preference enables assertions to enforce Core Data's multi-threading policy. It is a number, where incre
@ashokds
ashokds / xcode-tips.sh
Last active August 17, 2017 01:02 — forked from jonathan-beebe/clean_old_code_simulators.sh
iOS & Xcode Tips
https://www.raywenderlich.com/72021/supercharging-xcode-efficiency
----------
# Close Xcode & the iOS Simulator
# http://stackoverflow.com/a/30940055
# Remove any old runtimes from this directory.
cd /Library/Developer/CoreSimulator/Profiles/Runtimes
# e.g.
@ashokds
ashokds / generate_namespace_header.sh
Created May 9, 2017 22:29
Generate Namespace Headers
# This script is a modified version of this: https://github.com/jverkoey/nimbus/blob/master/scripts/generate_namespace_header
header=$SRCROOT/ext/NamespacedDependencies.h
prefix="YOUR_PREFIX_HERE"
echo "Generating $header from $CODESIGNING_FOLDER_PATH..."
echo "// Namespaced Header
#ifndef __NS_SYMBOL
@ashokds
ashokds / gist:b72e8280ae98ea4351c5ea5ff459d03e
Created March 27, 2017 06:33
Janrain dynamic framework issue: pod install output
me.kon @ ~/workspace/janrain-demo/JanrainPodDemo $ pod install
Analyzing dependencies
Pre-downloading: `Janrain` from `https://github.com/janrain/jump.ios.git`, tag `5.0.3`
Downloading dependencies
Installing AppAuth (0.7.1)
Installing GTMAppAuth (0.5.0)
Installing GTMSessionFetcher (1.1.9)
Installing Janrain (5.0.3)
Installing libextobjc (0.4.1)
Generating Pods project
@ashokds
ashokds / XYZManager+Additions.m
Last active December 9, 2016 21:12
Static BOOL thread safety with class methods
// Old using NSLock.
#import "XYZManager+Additions.h"
@implementation XYZManager (Additions_old)
static BOOL setup = NO;
static NSLock *setupLock = [NSLock new];
+ (void)xyz_setupSuccessful:(BOOL)success {
[setupLock lock];