File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?

If you want to remove the support for any architecture, for example, ARMv7-s in your case, use menu Project -> Build Settings -> remove the architecture from “valid architectures”. You can use this as a temporary solution until the library has been updated. You have to remove the architecture from your main project, not from … Read more

Cocoapods Warning – CocoaPods did not set the base configuration of your project because because your project already has a custom config set

I had the same problem, but in Xcode 6.1.1 – what fixed it for me was to change the configuration file setting to None for the two Pods-related targets, then run pod install again. The configuration file setting is found by selecting the project (not the target) and then the Info tab.

Xcode “Build and Archive” from command line

I found how to automate the build and archive process from the comand line, I just wrote a blog article explaining how you can achieve that. The command you have to use is xcrun: /usr/bin/xcrun -sdk iphoneos PackageApplication \ -v “${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app” \ -o “${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa” \ –sign “${DEVELOPER_NAME}” \ –embed “${PROVISONING_PROFILE}” You will find all the … Read more

Code signing is required for product type ‘Application’ in SDK ‘iOS 10.0’ – StickerPackExtension requires a development team error

Holy molly, I had to do all this in order for it to work. A picture is worth a thousand words. If you get this error while archiving then continue reading. Go to your app and click on the general tab. Under the signing section, uncheck “Automatically manage signing”. As soon as you do that … Read more

Missing Compliance status in TestFlight

Unless your app is using some special encryption you can simply add Boolean a key to your Info.plist with name ITSAppUsesNonExemptEncryption and value false. In code: <key>ITSAppUsesNonExemptEncryption</key> <false/> If you want to use the Xcode UI instead, head over to the Project > Target > Info panel, add a new “App Uses Non-Exempt Encryption” Boolean … Read more

How to print out the method name and line number and conditionally disable NSLog?

Here are some useful macros around NSLog I use a lot: #ifdef DEBUG # define DLog(fmt, …) NSLog((@”%s [Line %d] ” fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) #else # define DLog(…) #endif // ALog always displays output regardless of the DEBUG setting #define ALog(fmt, …) NSLog((@”%s [Line %d] ” fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) The DLog macro is … Read more