Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[not ready] integrate iOS - #824

Closed
incanus wants to merge 29 commits into
masterfrom
integrate-ios
Closed

incanus wants to merge 29 commits into
masterfrom
integrate-ios

Conversation

@incanus

@incanus incanus commented Feb 7, 2015

Copy link
Copy Markdown
Contributor

@incanus

incanus commented Feb 7, 2015

Copy link
Copy Markdown
Contributor Author

Todo:

  • reorg for iOS test app code in ios/app
  • shift remainder of library-specific stuff up to parent project
  • scriptable builds
    • static
    • dynamic
  • docs updated
  • Travis passing for this PR
  • integrated iOS testing using existing KIF
  • CocoaPods grabbing builds

@incanus

incanus commented Feb 7, 2015

Copy link
Copy Markdown
Contributor Author

Packaging the static lib & putting it in a raw app works now as long as you link the requirements:

screen shot 2015-02-06 at 6 48 02 pm

Still working on some resource bundle issues — MapboxGL.bundle is built & can be copied, but isn't being reference properly by the library anymore.

@incanus

incanus commented Feb 9, 2015

Copy link
Copy Markdown
Contributor Author

Hitting a couple code signing issues right now that's blocking this. @kkaefer I know you mentioned you ran into something with this. The reason is because our make ios does an xcodebuild -sdk iphoneos and building for device requires signing. We should be able to fix this with App Signing as described here. In past I've just relied on iOS testing as:

  1. Build gl-native for sim, just to make sure it builds.
  2. Build gl-cocoa for sim and run KIF integration tests.

I'll look at getting actual device signing to work so that we can indeed test both sim & device on Travis, then do integration tests on sim alone.

@incanus

incanus commented Feb 9, 2015

Copy link
Copy Markdown
Contributor Author

BTW in the interest of sprinting, I'm going to fix the code signing issues, then do a review and merge this very soon. We can get KIF, dynamic builds, and CocoaPods going later — these are not essential to continued development just yet.

@incanus

incanus commented Feb 10, 2015

Copy link
Copy Markdown
Contributor Author

Yes, got iOS building on Travis!

https://travis-ci.org/mapbox/mapbox-gl-native/jobs/50142574

We build for:

  • Device (armv7 armv7s arm64) with Release
  • Simulator (i386 x86_64) with Debug

Both code sign with our Enterprise identity, which has some various keys, certs, and such encrypted in Travis (as well as a password on the cert private key).

I'm gonna squash this PR down, merge to master, and individually ticket the remaining items:

  • Dynamically-linked iOS builds (for ease of install on iOS 8+ & Swift support)

    This is not high priority for now since we are in active development.

  • CocoaPods (for early testers / adopters grabbing our prebuilt libs / eventual majority install method)

    Same as above.

  • KIF running for iOS builds again (integration testing on iOS libs)

    Also not urgent since our API may change as build up annotations

  • cleaning up now-defunct gl-cocoa repo and pointing people here

    To avoid confusion

@incanus

incanus commented Feb 10, 2015

Copy link
Copy Markdown
Contributor Author

All issues ticketed and squashed PR in #827.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants