prateek147/DVIA

Xcode 6.4 compile issues

hubert3 opened this issue · 2 comments

Hi,

Xcode 6.4 threw up many different errors trying to compile this from Github source due to pre-existing developer, app and app group IDs in the project needing to be changed.

I got it to work eventually, but especially given that this project is intended to help beginner pentesters who may not have a lot of experience with Xcode, it would be very helpful to document all the changes that are necessary, particularly since WatchKit App & Extension have been added.

First I had to change the Team & bundle ID for each target in Targets / General / Identity due to an error that the App ID was already taken and had to be unique. Then I had to change the App Group ID (can't remember where I did that).

Next error:

error: WatchKit Extension doesn't contain any WatchKit apps whose bundle identifiers match "com.highaltitudehacks.dvia.watchkitapp". Verify that the value of WKAppBundleIdentifier in your WatchKit Extension's Info.plist matches the value of CFBundleIdentifier in your WatchKit App's Info.plist.

This can be solved by going into Targets / WatchKit Extension / Info / NSExtension / NSExtensionAttributes / WKAppBundleIdentifier and changing this to match the new ID of the WatchKit App that had to be changed in the previous step.

Next I faced a similar error because the WatchKit App had to be updated to match the main app's changed App ID. This seems to require manual editing the Info.plist for the WatchKit App because there's no Info tab exposed for the WatchKit app:

    <key>WKCompanionAppBundleIdentifier</key>
    <string>com.hubert3.dvia</string>

While I fixed the issue I think more documentation about the steps required on recent Xcode would be very valuable to the project.

Hi Hubert
I very strongly agree, I have been playing about with this for a long time and still no joy. I will try your steps later on today. I would like to say a very big thank you for this as it has been doing my head in lol. PS by any chance would you be able to make a quick video of the steps taken, if you can this would be amazing if not dont worry, thanks again.

Edit:
Would you mind elaborating a bit more on the instructions above please. Thank you very much in advance.

I ran into issues as well and documented a repeatable process to build and deploy DVIA for XCode 8 and iOS 10. Hope this helps and if anyone runs into issues, please let me know as I'd like to update the post to reflect any tweaks.