Posts

Showing posts with the label XCode

Custom Message extension using Messages SDK - iMessage App store

Image
In our previous article , we discussed about creating custom sticker extension for our iMessage App store. We used images and using Messages SDK, we are able to create the custom extension for sticker. We also created a basic sticker extension in this article . Apple Messages SDK provides lot more features than just creating stickers. In today's article, we will create a custom message extension using Messages SDK and run them on iMessage app store. Before diving in to the project, lets look at the classes provided by Apple for implementation. MSMessagesAppViewController The MSMessagesAppViewController class acts as the principal view controller for Messages extensions. Use this class to manage your extension. MSMessageTemplateLayout The MSMessageTemplateLayout describes how an MSMessage object is presented in the transcript. The message template includes the Message extension’s icon, an image, video, or audio file, and a number of text elements (title, subtitle, captio...

Custom sticker extension using Messages SDK - iMessage App store

Image
In our previous article , we discussed about creating basic sticker extension for our iMessage App store. This step requires  to create imgages but no coding effort. Today, in this article we will discuss about creating a custom sticker extension and create stickers from the app. Before diving in to the project, let's have a quick glance about the new classes provided by Apple for implementation. MSMessagesAppViewController The MSMessagesAppViewController class acts as the principal view controller for Messages extensions. Use this class to manage your extension. MSStickerBrowserViewController Use the MSStickerBrowserViewController to present the standard sticker browser. This browser provides drag-and-drop functionality. The user can press and hold a sticker to peel it from the browser, then drag the sticker to any balloon in the transcript. The user can also tap stickers to add them to the Messages app’s input field. MSSticker A sticker for use in the Messages a...

Adding iOS 4.3 and iOS 5.0 simulator to iOS 5.1 XCode 4.3 SDK

I recently downloaded the latest version of XCode 4.3 and iOS 5.1 from Apple developer site as on (March 2012). Since this package gives me only iOS 5.1, I can't able to test my applications in below OS versions like iOS 5.0, iOS 4.3. To do so, we need to download the required OS separately inXCode. 1. Click on XCode -> Preferences. 2. Navigate to tab, Downloads. 3. Click on the Components button. 4. You can see the list of iOS versions available. Click on Install button on the required OS. 5. The OS will automatically gets downloaded and installed in your XCode. Alternatively, setting your project deployment target to lower versions, will give you an option More Simulators in the Simulator/Device selection menu. clicking on that, opens the same page of downloads.

How to resolve code sign error in XCode

Getting a code sign error has many reasons. Below are the measured steps to be taken after downloading the profile from Developer account and before making the build. 1. When you download a new/updated profile from the developer account, delete the existing profile and then add the new profile to the "Provisioning Profile" folder. 2. Restart XCode. Since only after restart, the XCode can identify your new profiles. Else it will be referring to your old profiles. 3. Go to Edit Project Settings -> Build Settings -> Code Signing Identity -> (Release/Distribution) -> Other.  Now, clear the old data displayed. Now select the new profile from the list of profiles in Code Signing Identity. The new profile will be displayed at the top of the list, next to "Don't code sign". 4. Repeat Step 3 process in Edit Target Settings. 5. Build and Run. And, ONE MORE THING, Don't forget to Clean All the Targets before making the Build and Run.