Updating extensions for iOS 9: Difference between revisions

From iPhone Development Wiki
(info on modifying ldid's make script to use a brew-installed openssl)
(Add Xcode instructions)
Line 30: Line 30:


     XXX_LDFLAGS += -Wl,-segalign,4000
     XXX_LDFLAGS += -Wl,-segalign,4000
If using [[Xcode]], add a new entry to ''Other linker flags'' containing "-Wl,-segalign,4000" to the build settings of your project or target.


Source: [http://twitter.com/saurik/status/654198997024796672 saurik's tweet]
Source: [http://twitter.com/saurik/status/654198997024796672 saurik's tweet]

Revision as of 19:14, 14 October 2015

Let's collect knowledge like we did with Updating extensions for iOS 8 and Updating extensions for iOS 7 - paste in your notes and share what you've learned, and somebody else will organize it later. :) If you want to ask questions and share tips over chat with other developers, see How to use IRC for how to connect to #theos and #iphonedev.

Hey developer, you can add your knowledge here! Yes, you! Make an account and edit this page!

It's also helpful to double-check the statements here and add more info! These are notes and drafts from early research - feel free to update them.

If you want to see what's been recently updated on this page, you can use the wiki's history feature to compare the revisions (to look at the diff) since the last time you visited this page.

Compiling ldid on El Capitan

Not quite iOS 9, but still something to be aware of: El Capitan does not include OpenSSL, which ldid requires to compile. In order to get OpenSSL and modify ldid's make script to use it, follow these steps.

  • Install Homebrew if you haven't already.
  • Install OpenSSL through Homebrew:
   brew install openssl
  • Clone ldid as normal.
  • Download this modded make.sh and replace the old one with this one.
  • Make as normal:
   ./make.sh

Runtime changes

Code must be compiled with

   -Wl,-segalign,4000

This LDFLAG can be used to compile for older iOS versions as it had to be a multiple of 1000.

If using Theos, add it like so:

   XXX_LDFLAGS += -Wl,-segalign,4000

If using Xcode, add a new entry to Other linker flags containing "-Wl,-segalign,4000" to the build settings of your project or target.

Source: saurik's tweet