r/GBA4iOS • u/psa-gba4ios • Apr 01 '16
New Instructions (Compiled Successfully 2016-04-01)
LAST SUCCESSFUL BUILD: 2016/07/22
STATUS: WORKING
RESYNC REQUIRED: 7 days
[INTRO]
This is a guide for installing GBA4iOS using the sideloading method. This means you load the application onto your iDevice from your Mac by building the project yourself as a 'developer'. This way, you can personally resign the certificate every 7 days and not have to worry about Apple permanently pulling the cert, as with other solutions.
I have reworked much of this guide. Instead of spending a lot of time explaining different ways to do things, I'm just going to explain one. The latest version of software will be my focus. This will simplify the instructions for the vast majority of non-technical people.
There is also a visual guide by /u/enn337 at http://fuzzicode.com/blog/tutorials/gba4ios-a-visual-guide-to-side-loading/. However, it should be noted that these two guides are not 100% interchangeable.
[REQUIREMENTS]
Mac running OS X 10.11.6.
Xcode 7.3.1
iPhone or iPad running iOS 9.3.3
I test using an iPad 3 and an iPhone 6s.
[INSTRUCTIONS]
TIME TO COMPLETE: 20m
Install Xcode through the Mac App Store. You will need to create an Apple ID to do this if you haven't already. You should probably have one if you own an iDevice.
Open Terminal.app. Search for it in Spotlight.
Install Cocoapods 1.0.0 by copy-pasting all of this:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew update && brew install ruby git && brew cask install cocoapods-appCopy-paste all this, it's going to drop the "master" file in your home directory:
git clone https://bitbucket.org/rileytestut/gba4ios/branch/mastercd ~/mastercurl -o Podfile https://pastebin.com/raw/MKAFdU7Tpod installPlug in your iDevice.
Copy-paste this:
open GBA4iOS.xcworkspaceThis will open Xcode. There are some arrowy things in the top left hand corner looking like
[GBA4iOS > (something)]. Make sure (something) is the name of your iDevice.Click on "GBA4iOS" in the leftmost bar. The large, middle section should fill.
Change the Bundle Identifier, the topmost text box, to something unique. Maybe com.yourname.GBA4iOS.
Change the Team with the dropdown in the same section. You may have to add an account. Just sign up with your Apple ID. Once you've signed in, close out the popup windows and go back to the dropdown. You should see your Apple account listed.
In the "Linked Frameworks and Libraries" section at the very very bottom of the section, the colorful part, remove the file
libPods.a. We're going to be using the libPods-GBA4iOS.a, which is still greyed out for now, but not for long!Hit the "Play" arrow up at the top. This will start the build, and will take a while.
Once it's done, switch to your iDevice. Go to
Settings > General > Device Management, select your Apple ID from the list (that's all that should be there in most cases), and trust yourself.Enjoy! You can close out of Xcode and Terminal now. Keep the "master" folder (or relocate it, if you feel like you can find it later with
cd).
[RESYNCING]
TIME TO COMPLETE: 2m
Connect your iDevice to your computer.
Open Terminal.app as before, through Spotlight.
Open the project by copy-pasting this:
cd masteropen GBA4iOS.xcworkspaceCheck that
[GBA4iOS > Your iDevice]is selected.Click the button right below the "Team" dropdown to request a new certificate.
Hit "Play" at the top as before.
Once it's done, close out of Xcode and Terminal.
[FAQ]
I want to start over from scratch.
Starting over from step 2 isn't enough! If you're having issues with Cocoapods, try running:rm -rf ~/.cocoapods
This erases a local cache of files, and then you can copy-paste this to download the latest version of Cocoapods:brew update && brew upgrade && brew cask zap cocoapods-app && brew cask install cocoapods-app
Double-check that the correct version of Cocoapods is installed (currently 1.0.0) by copy-pasting this:pod --version
Then run this to wipe out the GBA4iOS source files:rm -rf ~/master
I don't have a Mac / Hackintosh / etc.
There are guides floating around for installing OS X as a virtual machine on a computer running Windows/Linux. Some users have reported success with this approach. The technical details for how to perform the installation fall outside the scope of this guide, but you can look at this post for more information. Only do this if you're really desperate.
I'm getting a lot of compile errors. Are those okay?
The yellow "warning" errors are mostly harmless; most of them report some deprecation, and the app seems to compile and run without any problems regardless. The red "critical" errors will actually interrupt the build, so you can't even try running the app if you get those.
Is there a video of this?
Not that I know of. I am currently not planning on making a video because there is a lot of personal information revealed during the process, and the outcome of blurring out all the necessary parts would reduce the instructiveness of the video considerably. If someone else wants to make a video and share it, I will definitely post it here and give them credit.
Are there any other solutions?
I don't test or endorse any of these: I update this post as people notify me that they work/don't work. Historically speaking, these solutions tend to be simple but either go defunct because Apple pulls their certs, or require you to pay for them. Either way, they may work for you.
Builds Store supposedly is pretty reliable but costs $9.99/device/year (and that is lame).
[LAST 5 EDITS]
2016/07/22 Totally reorganized everything.
2016/07/24 You have to use
brew cask zap cocoapodsto remove Cocoapods:brew cask remove cocoapodsseems to keep the old version in some cases.2016/07/24 Added missing quotation mark to the end of command installing homebrew.
2016/07/25 ~/ in step 4, EDITS > LAST 5 EDITS.
2016/08/26 "cocoapods" homebrew cask renamed to "cocoapods-app".
2016/09/06 Added reference to visual guide by /u/enn377.
4
May 13 '16
So this method works but after about 2 or 3 weeks the app stops opening and instead crashes upon startup. When I check my profile in settings, the one I used to install gba4ios is not there anymore. At first I thought because I reset my phone it removes the profile but I didn't reset it this time and after a while it still removed the profile. Is there a set length of time you can have your own profile activated until it deletes itself, or is there a way to circumvent this?
1
u/psa-gba4ios May 14 '16
Long story short, it's a known issue but we aren't sure. It seems that Apple is only approving the certs for about a week now. I'm waiting on my week-long cert to expire so I can mess around with it.
1
1
u/jbroombroom Jul 11 '16
I'm having the same issue. The first time I side loaded gba4ios, it lasted for 3 months before it started crashing on launch. I recently loaded it again 2 weeks ago, and it worked perfectly but it just started crashing on launch today.
1
Jul 16 '16
If you leave it open in multitasking and open it through that it should still work, instead of directly through the app icon
1
3
2
Apr 28 '16 edited Apr 28 '16
I followed everything EXACTLY as it said on the post (I used masterchen09's build) and when I'm at the build part in Xcode and click the play button I get the following 3 fatal build errors along with multiple yellow triangle errors:
diff: /Applications/GBA4iOS/master/Pods/../Podfile.lock: No such file or directory
diff: /Applications/GBA4iOS/master/Pods/Manifest.lock: No such file or directory
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.It mentions I had to use pod install, but I did. I typed it in where the instructions said I should. My Cocoapods installation is up to date because I installed it for the first time just now.
EDIT: I'd also like to mention that when I type in
% pod installinto the terminal, everything goes fine except the very last line of text which reads in red
[!] Unable to find a specification for `Dropbox-iOS-SDK (~> 1.3.0)`I use this line of text that was mentioned in the post before typing pod install in Terminal:
% curl -o Podfile https://pastebin.com/raw/MKAFdU7T1
u/psa-gba4ios Apr 30 '16
Try running
pod repo updateprior topod install. Also post the output ofpod --versionand your installation method so I can update the guide if necessary.1
Apr 30 '16 edited Apr 30 '16
Ok so I started over completely (checked the FAQs so I knew exactly how to start over correctly) and did
% pod repo updatebeforepod installand this came up once I didpod installCocoaPods 1.0.0.beta.8 is available. To update use:
gem install cocoapods --pre[!] This is a test version we'd love you to try.For more information see http://blog.cocoapods.org and the CHANGELOG for this version http://git.io/BaH8pQ.
[!] CocoaPods was not able to update the
masterrepo. If this is an unexpected issue and persists you can >inspect it runningpod repo update --verboseI did
pod --versionon my first attempt and this came up:0.39.0I installed cocoapods in my first attempt via
sudo gem install cocoapodson Terminal because it wouldn't let me do justgem install cocoapods. I had also tried installing it via the website downloadable application but the same thing happened. This first attempt still caused the build in Xcode to fail with the same error that it could not find the file or directory regarding the pod files or whatever. On a second attempt I tried doing what the cocoapods prompt on Terminal said and installed the newer beta version just to see if it worked. After doing the update and tryingpod --versionthis came up:1.0.0.rc.1I did
pod repo updateon my second attempt with the beta version of cocoapods and this came up after about a minute and a half of waiting:Updating spec repo
masterPerforming a deep fetch of themasterspecs repo to improve future performance $ /usr/bin/git pull --ff-only error: Your local changes to the following files would be overwritten by merge: CocoaPods-version.yml Specs/foresee-sdk/3.4.5/foresee-sdk.podspec.json Please, commit your changes or stash them before you can merge. error: The following untracked working tree files would be removed by merge: Specs/BMSAnalyticsSpec/0.0.1/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.10/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.12/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.13/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.14/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.15/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.16/BMSAnalyticsSpec.podspec.json Updating a5be4ef..b878ba5 Specs/BMSAnalyticsSpec/0.0.2/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.3/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.4/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.5/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.6/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.7/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.8/BMSAnalyticsSpec.podspec.json Specs/BMSAnalyticsSpec/0.0.9/BMSAnalyticsSpec.podspec.json Please move or remove them before you can merge. Aborting[!] CocoaPods was not able to update the
masterrepo. If this is an unexpected issue and persists you can >inspect it runningpod repo update --verboseI proceeded to do
pod installand then creating the new workspace in Xcode and it gave me the exact same error as well (regarding the pod files missing or something)...I think it might have something to do with cocoapods itself? I'm not very savvy when it comes to app development and whatnot but it seems to be the problem every time I try a different approach2
u/psa-gba4ios Apr 30 '16
Basically the versions of all the software involved matter a lot. Dropbox-iOS-SDK v1.3.13 has been around for "a while" now so there's definitely something hung up in CocoaPods. On 1.0.0.rc.1, try removing your CocoaPods repo cache.
rm -rf ~/.cocoapodsThen in the directorymaster, runpod install. It's going to take a while.1
Apr 30 '16
Oh my god THANK YOU! It's fixed! I removed the Cocoapods repo cache and ran
pod installafterwards and worked like a charm once I got it to Xcode. You're a life saver. This might be a good thing to put into the FAQs should anyone run into Cocapods hiccups.0
May 16 '16
[deleted]
1
u/psa-gba4ios May 16 '16
It's under your user's home directory, but you can't see it by default in Finder, it's hidden. .cocoapods is the directory and ~ represents the user home directory, hence
rm -rf ~/.cocoapodsis the most expedient way to remove it.1
u/CynicalCyndaquil Aug 16 '16
Hey thanks for all the help, but the rm -rf ~/.cocoapods command doesn't seem to do anything in terminal for me. I enter it into the terminal and hit enter and it takes me down a few spaces, but it doesnt actually respond. thanks
2
u/psa-gba4ios Aug 17 '16
The command only gives you a response if there was an issue. If you need to check if the .cocoapods folder still exists, you can do this:
[ -f ~/.cocoapods ] && echo "Found" || echo "Not found"1
u/CynicalCyndaquil Aug 18 '16
that command makes it seem ike the file doesnt exist, but if i run pod --version it says I'm on 1.0.1. I'm still getting those same three errors, any suggestions?
1
u/psa-gba4ios Aug 18 '16
If you want to completely remove cocoapods, you should do
brew cask zap cocoapods. Removing .cocoapods just removes cocoapods' cache.→ More replies (0)1
u/GardensOfTheKing Aug 21 '16
I see that you fixed your problem but just incase anyone else had the same issue, I fixed it differently.
I noticed my CPU was running high and looked at activity monitor to see what was up. Looked like GIT and Dropbox were going crazy. I quit Dropbox and then the pod installation magically finished after it hanging for hours. I have no idea why they were clashing but maybe someone else can enlighten me.
2
u/giaset May 03 '16
Forked the repo and made one big change that should make the install process much easier for beginners:
I removed all Pod related directories from the .gitignore so that they get committed up to the repo. This makes steps 2, 5, 6, and 7 unncessary.
Also fixes the import statements and disabled bitcode, so you can also skip steps 10-14.
Check out my fork here: https://bitbucket.org/giaset/gba4ios
1
u/psa-gba4ios May 03 '16
That's potentially very useful, though I would recommend forking masterchen09's repo since it supports iPads as well and compiles with fewer build errors. I think step 17 could also be fixed with relative ease.
1
u/giaset May 04 '16
Weird, I didn't even have to do anything re: the libPods file, it just worked...
I can fork masterchen09's repo and commit up all Pod related files if it's any use to anybody
1
u/psa-gba4ios May 06 '16 edited May 06 '16
The 0.38.0 version of Cocoapods may work with the libPods.a item. I ran into a few issues with running that version of Cocoapods on ruby 2.3.0p0, which is the "latest stable" version of ruby that some people may be using in comparison to OS X's stock ruby 2.0.0p648. Using
gem install cocoapods --preinstalls 1.0.0.rc.1, and seems to work well with the most common versions of Ruby. Cocoapods just moved from beta-testing to rc-testing their 1.0.0 build, so a GA is probably around the corner. Once that happens, some of the syntax in the original Podfile that you can find on the repos (the one that we replace in step 6) will no longer be supported. That's essentially the rationale behind using Cocoapods 1.0.0 and the new Podfile.I'm currently installing the 7.3.1 update to Xcode/CLI tools so I'll soon be able to see if the version of ruby also changes and how that may affect use of Cocoapods. More to come.
1
u/psa-gba4ios May 08 '16
The version of Ruby stays the same. Based on the list of what the CLI tools package installs, it should remain as such throughout this version of OS X. However, RubyGems will still update periodically.
2
u/thegaxman May 13 '16
This is excellent and I love it. Worked well. However, it seems my provisioning profile only lasts a week at a time. Is there any way to get that longer on a free account? I'd love to do this only quarterly instead of weekly.
1
u/psa-gba4ios May 13 '16
I just generated a new provisioning profile and got the week-long provisioning profile, though my old ones were 3-month profiles. What's more, when I did so, they removed my old provisioning profiles. So we're probably screwed.
1
u/thegaxman May 13 '16
Lame! I just bought a Mac, and the first thing I did was download Xcode for this project.
1
u/psa-gba4ios May 14 '16
Yeah I'll look further into it in a week when my new cert expires. If anyone has some time before that to dig around, it would be helpful.
1
u/psa-gba4ios May 27 '16
Hmm. Well, nearly two weeks later the app seems to launch without a problem for me still. I have a hunch that I'm still pulling my old certificate from somewhere. But if anyone has any input on their situation it would be helpful. Based on my research, there is no way to generate a longer-lasting cert without a developer account because the certs we are using are being completely generated and issued by Apple instead of being merely signed by Apple.
5
u/Boktai1000 Apr 11 '16
This needs to be stickied in this subreddit. This is the ideal method for installing GBA4iOS - there should be no alternative.
1
u/Swopyx Apr 01 '16
I heard https://bitbucket.org/Masterchen09/gba4ios should work fine with ipads too
2
u/psa-gba4ios Apr 01 '16
Nice, I'll try it out in a little while. If I remember correctly, I think I did try to build it at some point, but it was having the same Cocoapods issue as the main branch.
1
u/Swopyx Apr 01 '16
I dont know about your method, I Have it from the "classic" method of sideloading it.
https://www.youtube.com/watch?v=v5Ene5uPzz8 was the tutorial for it. (I used it via VirtualBox on my Windows10 Laptop, but it should be the same for all)
1
u/psa-gba4ios Apr 02 '16 edited Apr 02 '16
You're right, I updated the instruction list with the masterchen09 build. It works great on the iPad with fewer modifications and fewer compile errors. I updated the post. I'm using OS X on a Mac. I did see that video somewhere I believe, along with another, though both only got me halfway there, so I decided to write up exactly what I had to do in the event it will benefit others.
1
u/Swopyx Apr 02 '16
I forgot that the git used in the video is the wrong too, I think in the top post there is a second working one for ipad.
1
u/tylerchu Apr 03 '16 edited Apr 03 '16
I'm getting "no provisioning profiles found" error. I've looked online and done what they said but it's not helping. It says that an Apple ID with "com.rileytestut.GBA4iOS" isn't available.
And when I change it to com.tylerchu.GBA4iOS I'm still getting an error. A different error though. Generic error. I'm trying to poke it right now and see what happens.
EDIT: Alright so I'm getting the error of AFNetworking/AFNetworking.h file not found plus a bunch of yellow errors which I assume are alright?
EDIT2: Now I'm getting PSPDFText.View.h file not found...
2
u/psa-gba4ios Apr 03 '16 edited Apr 11 '16
That's to be expected since Cocoapods can't run the old Podfile - they did some modifications to their syntax fhat removed a feature the old Podfile relied on. Cocoapods installs all the dependencies that GBa4iOS relies on. AFNetworking and PSPDFTextView are both such dependencies.
You should be able to wget the file by removing the s from https.
wget http://0x0.st/PB7.txt -O Podfile
I think the RSA key on the server is too large for default installations of OS X. Sorry, thought they fixed that!The errors associated with the project ID are most likely caused by 1. the project name not being changed to something unique and 2. not registering one's Apple ID as a developer account. You should be able to do that in the field right below the project ID.
Edit: I was able to open the file using http on my iPhone so that should work fine on OS X as well. Also, if Xcode is launching in the VM it's pretty unlikely you'll have to reinstall- might save you some time.
2
u/tylerchu Apr 03 '16 edited Apr 03 '16
And these are the instructions for homebrew correct?
EDIT: I got it working. Thank you so much. I used https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#step-2 as my homebrew instruction guide.
3
u/psa-gba4ios Apr 04 '16 edited Apr 11 '16
Fastest way is
xcode-select --installand then copy/pasting the command on their homepage (http://brew.sh). Then dobrew tap caskroom/cask,brew install caskroom/cask, thenbrew updateto update the cask database, thenbrew cask install cocoapods. This requires administrative privileges.2
u/tylerchu Apr 03 '16 edited Apr 03 '16
Alright so I've scrapped the entire project, reinstalled my virtualbox and all the goodies. So I starting everything over, I have a problem with step 6. I am unable to establish an SSL connection. So I decided to skip that part and continue. Everything goes fine until the compiling in which I get the red error of "AFNetworking/AFNetworking.h not found" as well as yellow errors of "Pods.[stuff].xconfig couldn't be opened because its path couldn't be resolved". What to do?
2
1
u/honahle Apr 04 '16 edited Apr 04 '16
Everything went fine until the compiling. I also get the following error about AFNetworking.
/Users/-/Desktop/master/GBA4iOS/GBAEventDistributionOperation.m:11:9: fatal error: 'AFNetworking/AFNetworking.h' file not found
#import <AFNetworking/AFNetworking.h>
^
1 error generated.I tried copying the file manually there but getting more and more errors which I don't know how to fix. Any idea how to compile successfully?
1
u/psa-gba4ios Apr 04 '16 edited Apr 11 '16
Most likely the pods weren't installed correctly. I'd make sure Cocoapods is installed, make sure you replaced the Podfile and run
pod install, keeping an eye out for errors.The yellow 'warning' errors aren't fatal and you can compile the app despite them. masterchen09's fork throws fewer errors.
1
u/honahle Apr 06 '16
Homebrew and Cocoapods are installed and I replaced the Podfile, a few times by downloading it with curl (no errors occurred) and also by coping and replacing it manually. When running pod install, it only shows some yellow warnings but no red errors. I have tried step 3–18 several times and always downloaded masterchen09's build. It still can't find AFNetworking/AFNetworking.h when compiling the file GBA4iOS/GBAEventDistributionOperation.m
I have no idea what to do now. Do you have any suggestions?
1
u/psa-gba4ios Apr 06 '16 edited Apr 11 '16
The
pod installcommand is directory dependent - you have to run it in the 'master' directory for it to select the project's Podfile and install it properly. The same goes for curl - you can make sure the Podfile is correctly updated by runningcat /Users/$(whoami)/Desktop/master/Podfileand comparing it to the pastebin link.If you post the terminal output for an entire installation attempt, removing any personal information of course, That may be helpful for us to see what's happening.
1
u/honahle Apr 07 '16
I was able to compile and run it successfully after installing cocoapods-deintegrate and running pod deintegrate before the pod install command as suggested by jrtist. Maybe you can write about it in your instructions post.
Thank you all for your help!
1
u/psa-gba4ios Apr 07 '16
I'll look into it. From the description on cocoapods-desintegrate's Github readme it appears to be roughly equivalent to starting over from the creation of the master directory and replacement of the Podfile.
1
u/honahle Apr 08 '16
I tried starting over at step 4 at least ten times and it never worked. After running the deintegrate command it worked perfectly :)
1
u/tylerchu Apr 06 '16
My afnetworking error came from the fact that I didn't do step 6. Or rather, I did it but it came up with an error so being stupid me I ignored it. This error stems from the fact that I didn't have homebrew installed.
Basically this is a really long winded way of saying "do you have homebrew installed"?
1
u/honahle Apr 06 '16
I have Homebrew installed and even copied the new Podfile by myself instead of downloading it with curl.
1
Apr 11 '16
Is there a video tutorial anywhere? I dont know how to code at all and just wanna play gba4ios
1
u/psa-gba4ios Apr 11 '16 edited Apr 11 '16
/u/Swopyx posted a video tutorial that I believe includes most of the steps here. Though the only supported method for installing gba4ios does involve using developer tools, no knowledge of coding is necessary.
1
Apr 11 '16
Could you please link the video here?
1
u/psa-gba4ios Apr 11 '16
/u/Boktai1000 beat me to it, but if you're totally at a loss with these instructions you can try installing Happy Chick. Happy Chick is an emulator app that supports a wider range of gaming platforms and seems to be installable without the use of a Mac/Xcode.
Video: https://www.youtube.com/watch?v=mqexcPl0Y9I
Instructions: http://iemulatorbuzz.com/happy-chick-emulator-ios-download/I haven't tried Happy Chick personally and don't plan on "supporting it" personally. Not sure if it supports wireless linking or about the quality of the localization. Obviously they are an untrusted developer in the eyes of Apple and as far as I know the project is closed source so use at your discretion.
1
u/Boktai1000 Apr 11 '16
You don't need to code - look at the instructions above. There is no coding and it is step by step. I did a ctrl+f search and searched the thread for "youtube" and found this step by step video that is very similar to the post above, but it is a bit dated - https://www.youtube.com/watch?v=v5Ene5uPzz8
If you're more of a visual learner I'd watch this before moving forward with the instructions above. If you can't figure it out - tough luck.
1
Apr 12 '16
when running % pod install i run into the error [!] Unable to find a specification for NJKWebViewProgress (~> 0.1.0) depended upon by RSTWebViewController
[!] CocoaPods was not able to update the master repo. If this is an unexpected issue and persists you can inspect it running pod repo update --verbose
please help
1
u/psa-gba4ios Apr 13 '16
I just tested it using the homebrew installation method (1.0.0.beta.5) and it installed NJKWebViewProgress 0.1.8. Did you use the site download method for Cocoapods? That is a new method so there may be some issues with it. I would definitely try
pod repo update --verboseand thenpod installagain. NJKWebViewProgress should be included by default in the Cocoapods repository so the error likely signifies that your repo database still needs to be built.
1
u/enbay1 Apr 14 '16
The git clone command did not work for me, the website told me to use git clone https://bitbucket.org/rileytestut/gba4ios.git instead, and that worked.
1
u/psa-gba4ios Apr 14 '16
When you say it didn't work, what error did it present you with? I just tested was able to pull both projects with the commands listed. If the error was
fatal: destination path 'master' already exists and is not an empty directory.you just have to remove the master directory. The same thing will happen with the https://bitbucket.org/rileytestut/gba4ios.git URL as well, but with a different folder:fatal: destination path 'gba4ios' already exists and is not an empty directory.1
u/enbay1 Apr 14 '16
It was not either of those errors, it was more general about not finding the repo. Just tried on windows and osx and worked on both, so I have no clue.
1
u/Dvorak514 Apr 25 '16
in Xcode, when i am trying to build the emulator it says "No non–expired provisioning profiles were found." Not sure what the work around is for this, anyone else experiencing this?
1
u/psa-gba4ios Apr 27 '16
Mine shows
No matching provisioning profiles foundoriginally on the project's "General" tab. Make sure you've added yourself to the Team field by signing in with your Apple ID, and also make sure to change the Bundle Identifier to something unique. If all that looks good, tryXcode (menu bar) > Preferences > Accounts (tab at top) > [Your Apple ID on sidebar] > View Details... (bottom right button)and see if maybe your Bundle ID's Provisioning Profile is for some reason expired. It would be helpful if you could share your findings on that.
1
Apr 25 '16 edited Apr 26 '16
when i click the play button, i get the following fatal error
error This target cannot be compiled for the simulator. To compile for simulator, use the GBA4iOS-Simulator target.
1
u/psa-gba4ios Apr 27 '16 edited Apr 27 '16
error This target cannot be compiled for the simulator. To compile for simulator, use the GBA4iOS-Simulator target.This means your iDevice wasn't recognized by Xcode. Plug your iDevice into your computer and make sure it shows up at the top left. If it says
[GBA4iOS>Generic iDevice], it should mount automatically unless you're running OS X in a VM. You can also click on the box[GBA4iOS>iPhone 6s Plus]and select your device at the top of the menu to select it manually.1
1
u/Jayyyytee May 03 '16
This is all very new to me, but I have been working through it for a couple hours now. I can't pass step 7. after typing the :pod install: it gives me " -bash: pod: command not found "
I am positive I have done all the steps except for maybe the cocoapod part correctly. I installed the cocoapod latest version as of 3.May.16 and then clicked to install the command line tool, but have no idea what to do with cocoapods after that. What am I missing?
Any advice would be helpful. Thanks in advance.
1
u/psa-gba4ios May 03 '16
If installing through the app isn't working I'd recommend using the
gem install...method.
1
u/bballdude303 May 19 '16
Ok I have really screwed something up. I'm getting this error when I try to do step 2: ERROR: While executing gem ... (Gem::CommandLineError) Please specify at least one gem name (e.g. gem build GEMNAME) Maxs-MacBook-Pro:~ Max$ pod --version /Library/Ruby/Site/2.0.0/rubygems.rb:250:in find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.0.0/rubygems.rb:278:inactivate_bin_path' from /usr/local/bin/pod:22:in `<main>'
1
u/psa-gba4ios May 20 '16
You can try it like
sudo /usr/bin/gem install cocoapods --preand see if that makes any difference. From the looks of the error output, the command wasn't complete (I get the same error when runninggem install --pre).1
u/bballdude303 May 20 '16
Ok when I do that it works until I get this error:
ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj
1
u/psa-gba4ios May 21 '16 edited May 21 '16
I'd try
sudo /usr/bin/gem install xcodeprojthensudo pod installin the master directory.1
u/bballdude303 May 21 '16
I actually got it to work, finally by disabling some system security features and then re installing all the pods
1
u/wtfmynamegotdeleted May 24 '16
Reading this makes me realize how dumb I am with computers and shit. Is there any ELI5 instructions to this?
1
u/psa-gba4ios May 27 '16
Oof. Explaining everything in excruciating detail would at least double an already very long post (which has its obvious disadvantages in itself). If you're absolutely irrevocably lost, you could always use the Build Store. http://builds.io/
1
1
u/psa-gba4ios Jun 13 '16
You can try this post as well, which bypasses the need for the cocoapods stuff but doesn't work on iPad.
1
u/bramblz Jun 07 '16
If you delete your emulator and want to reinstall it what step should i start from?
1
u/psa-gba4ios Jun 13 '16
I haven't tried deleting and reinstalling, only "installing over". In any case, step 18.
1
u/Sir-Velociraptor Jul 23 '16
Or...Just set your date and time back to 2012-2010...after that you need to click on the app, make your date and time normal, then verify the developer, and just change your date and time back when you want to use the app...
1
u/psa-gba4ios Jul 23 '16 edited Aug 09 '16
With 9.3.3, I could only go back as far as 11/17/2015 on 7/23/2016 (249 days) or I'd get the internet connectivity message. If anyone else wants to test this out, set it either to that exact date or go online and find a "249 days back" calculator like this I'll test it out for a week and see how it goes. If it works I'll add it to the original post. /u/Sir-Velociraptor, are you able to set it back to 2012-2010 on 9.3.3?
I'm also trying two methods:
Completely reinstalling, setting the date before verifying the app, then setting the date automatically afterward, as one would do on their first installation;
Setting the date before reinstalling the app, running the app in 2015, then setting the time automatically, as one would do if they have already installed the app and don't want to mess with their save files.
So far both are working currently, even after rebooting. We'll see if it works in a week.UPDATE 2016/07/31:
Both of my installations expired, though I may have messed up the complete reinstall (#1), so I'm going to reattempt it. I had to set it to the date April 18, 2016 at earliest - 104 days ago. 249 days ago no longer worked. The other possibility is that the app needs to continually run to stay usable, in which case I'm not going to pursue the issue further or update the guide.UPDATE 2016/08/08:
Okay the date trick doesn't work well enough for me to add it to the guide. It may work if you always keep the app running, but since that's a fairly large inconvenience, and others have said that the date trick caused instability, I'm not going to update the guide with it or pursue it further.1
u/Sir-Velociraptor Jul 23 '16
Really? I'm on 9.3.3 and I can go back beyond 2003
1
1
u/runningnerd21 Jul 24 '16
I'm not sure what I'm doing wrong but I can't even get Cocoapods to install.
1
u/psa-gba4ios Jul 24 '16
What's the error message? I think cask should install automatically and then it will try to install Cocoapods.
1
u/runningnerd21 Jul 24 '16
There's no error or anything. I copy and paste it into the terminal and hit enter and nothing happens.
0
u/psa-gba4ios Jul 25 '16 edited Jul 25 '16
Try these, and check the versions:
brew --version
Homebrew 0.9.9ruby --version
ruby 2.3.1p112git --version
git version 2.9.2brew cask version
0.60.0pod --version
1.0.01
1
u/TheWeetodd Jul 25 '16
I followed all of the steps, and the build failed with 7 errors. Did I miss something? I don't know anything about this, and have no idea what they mean, but here are the errors:
/Users/Todd/master/GBA4iOS.xcodeproj The file “Pods.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/Todd/master/Pods/Target Support Files/Pods/Pods.debug.xcconfig)
/Users/Todd/master/GBA4iOS.xcodeproj Applications using launch screen files and targeting iOS 7.1 and earlier need to also include a launch image in an asset catalog.
/Users/Todd/master/GBA4iOS.xcodeproj The file “Pods.release.xcconfig” couldn’t be opened because there is no such file. (/Users/Todd/master/Pods/Target Support Files/Pods/Pods.release.xcconfig)
/Users/Todd/master/GBA4iOS.xcodeproj The file "Pods.ad hoc.xcconfig" couldn’t be opened because its path couldn't be resolved. It may be missing.
/Users/Todd/master/GBA4iOS.xcodeproj The file "Pods.jailbreak.xcconfig" couldn’t be opened because its path couldn't be resolved. It may be missing.
The file “Pods.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/Todd/master/Pods/Target Support Files/Pods/Pods.debug.xcconfig)
diff: /Users/Todd/master/Pods/../Podfile.lock: No such file or directory
diff: /Users/Todd/master/Pods/Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
1
u/psa-gba4ios Jul 25 '16
I'd try redoing these steps, looking for errors:
cd ~/mastercurl -o Podfile https://pastebin.com/raw/MKAFdU7Tpod install1
u/TheWeetodd Jul 26 '16
I got it working eventually but ran into just about every other issue mentioned above. I'm not sure exactly how I got it working, but somehow I did.
1
u/The66thDopefish Jul 28 '16
[FAQ]
I want to start over from scratch. Follow these instructions
Might want to note that the "instructions" are in the comment, otherwise Reddit idiots like myself are going to see this thread reload and be confused. :)
2
u/psa-gba4ios Jul 28 '16
It was such a small comment that I just added it to the main text. Thanks for the heads up.
1
u/kenniky Aug 02 '16
AFNetworking/AFNetworking.h file not found
Help? I tried doing the deintegrate thing other people suggested but it says I don't have permission to write to the Ruby folder :/
1
u/psa-gba4ios Aug 03 '16
The error seems to be pretty general. You can try doing this again:
cd ~/mastercurl -o Podfile https://pastebin.com/raw/MKAFdU7Tpod installThat may be enough. You can also try starting from scratch, which is described in the FAQ.
If none of that works, the output of these may help:brew --version
Homebrew 0.9.9ruby --version
ruby 2.3.1p112git --version
git version 2.9.2brew cask version
0.60.0pod --version
1.0.0
Also check that you don't have any pending updates in the App Store and that you're on El Capitan.
1
u/Ferdymcberdy Aug 10 '16
I'd like to start off by saying thank you for making this guide! And I'd also like to mention that I'm new to reddit formatting so sorry in advance.
I'm not very tech savvy on mac, so I'm having a few issues. I went through all the steps and received three fatal errors when I hit the play button in Xcode. I decided to start over and pay attention to what I was doing more and noticed that when pod install ran, it gave the error: -bash: pod: command not found In case something went wrong with step 3, I copy and pasted the code from step 3, it ran itself and output:
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
==> The following directories will have their owner set to FolderName:
/usr/local/.
/usr/local/bin
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin
Press RETURN to continue or any other key to abortI ran step four and it output:
iMac:~ FolderName$ git clone https://bitbucket.org/rileytestut/gba4ios/branch/master
Cloning into 'master'...
remote: Counting objects: 23172, done.
remote: Compressing objects: 100% (13707/13707), done.
remote: Total 23172 (delta 9162), reused 22545 (delta 8753)
Receiving objects: 100% (23172/23172), 136.14 MiB | 6.99 MiB/s, done.
Resolving deltas: 100% (9162/9162), done.
Checking connectivity... done.
Checking out files: 100% (11542/11542), done.
iMac:~ FolderName$ cd ~/master
iMac:master FolderName$ curl -o Podfile https://pastebin.com/raw/MKAFdU7T
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 504 0 504 0 0 563 0 --:--:-- --:--:-- --:--:-- 563
iMac:master FolderName$ pod installAnd it looked like pod install didn't run, so when I run that it outputs:
-bash: pod: command not foundI would assume this is the problem, since pod --version has the same error. Is Cocoapods not installing? Thanks
1
u/psa-gba4ios Aug 16 '16
Yes, that is most likely the case. It seems that installing Homebrew didn't complete from the output (You have to hit RETURN to finish it as stated in the output) so I would start from the ruby command and go from there.
1
u/mylostlights May 01 '16 edited May 01 '16
I'm getting this issue:
Could not find developer disk imagewhenever I try to start the build.
Edit: I figured it out lol. I just needed to update XCode. Whoops
1
u/reximilian May 02 '16
I'm getting this same error, but Xcode is up to date...
1
1
u/mylostlights May 03 '16
Then your iOS doesn't match the Xcode version, that's the issue. I'd check and make sure that Xcode doesn't have an update or that your phone doesn't have one. There could also be an issue if your phone is jailbroken
1
u/reximilian May 03 '16
That was the problem. I had done one once on a jaikbroke iPad and it worked fine. The next iPad was up to date. I was still running 10.10 and Xcode wasn't even showing an update available. So as far as I could tell on that machine I was up to date. I switched to a machine on 10.11 and it worked. Thanks!
1
u/jimmydorry Jul 09 '16
Does this still work, or do you need a developer account now?
1
u/jimmydorry Jul 09 '16
i.e. Does it need to be resigned every week?
1
u/jimmydorry Jul 16 '16
I got it working, eventually. /u/psa-gba4ios
I'll let you know if it expires in a week.
1
u/Mynameislouie Apr 30 '16 edited Apr 30 '16
Running xcode 7.3.1GM with cocoapods 1.0.0rc1, both pod install and pod deintegrate give me
"NoMethodError - undefined method `include?' for nil:NilClass"
any ideas?
EDIT: uninstalled cocoapods and deleted master/, reinstalled and followed instructions again and pod instal worked but I now get
ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)
when i try to compile with xcode
EDIT 2: fixed it by removing libPods.a, installed and working!
1
1
u/bankkopf Jun 14 '16
Since Riley Testut's repo has some PR merged, are the instructions what will be different when building in comparison with the masterchen fork?
1
u/iPiglet Jun 20 '16
Is there a video following these instructions? If there is one, can someone link it please; I'm confused.
1
u/kenniky Jun 27 '16
I did this a couple months ago and it no longer loads, just crashes.
I also can't find the profiles manager in my settings.
Help?
1
1
1
u/LimaHotel807 Jul 20 '16
I honestly don't get enough entertainment out of this to warrant all of the effort of building the app myself. This is bullshit.
1
Jul 24 '16
So far so good. Been running it for 3 days with no stability issues. Before I was running it with the date trick. Was not stable. Would crash irreversibly after one day. I'm on 9.3.2. Side loaded with el captain. Had to update my ruby gem in order to get brew casket to work (necessary for pod install). Took some time, but if it's stable, then it was worth it.
1
u/greengiant1290 Aug 21 '16
This was a great post ive attempted side loading a few times and never really got it working properly. With your instructions and comments on edits got it working in no more than a half hour.
1
u/The66thDopefish Sep 14 '16
I haven't tried it from scratch yet (I will momentarily), but when I go into Xcode to recompile GBA4iOS I get a "Could not find Developer Disk Image" error.
1
u/tylerchu Sep 28 '16 edited Sep 29 '16
You should also mention that command line tools are needed
http://fuzzicode.com/blog/tutorials/gba4ios-a-visual-guide-to-side-loading/
And this link (from someone else really far down in the comments) is also a good supplement
0
Apr 02 '16
[deleted]
1
u/psa-gba4ios Apr 03 '16 edited Apr 11 '16
Basically by running the wget command you are replacing the Podfile with a virtually identical but syntactically correct one, since the original had invalid syntax on the most recent build of Cocoapods. You may get an SSL error as mentioned below- that's site specific so if you remove the s from https you should be able to pull it.
% wget http://0x0.st/PB7.txt -O Podfile
0
Jul 24 '16
[deleted]
1
u/psa-gba4ios Jul 24 '16
What's the bottom one supposed to be? Cydia?
1
u/LimaHotel807 Jul 24 '16
I just realised I posted that comment in the wrong spot. It was meant to be a reply.
0
Aug 27 '16
[deleted]
1
u/psa-gba4ios Aug 27 '16
It looks like they changed the package name so try doing
brew cask install cocoapods-app.
0
Aug 29 '16
[deleted]
2
u/Halsifer Sep 14 '16 edited Sep 14 '16
I'm not sure if anyone has helped you already, but here is how I fixed it:
On the left sidebar, expand the GBA4iOS Project and you will see 6 folders.
Expand the GBA4iOS folder and you should see a folder in there called Debug.
Expand Debug and you will see 6 files.
Click on NSObject+DTRuntime.m.
Use Command + F to find the word "bridge" without quotes.
The line will read:
id impBlockForIMP = (__bridge id)objc_unretainedPointer(block);Change the line to:
id impBlockForIMP = (__bridge id)(__bridge void *)(block);Use Command + S to save the changes.
Build it (play button) and you should be good to go!
The reason for this, by the way, is Xcode 8.0.
0
Jul 03 '16
[deleted]
3
u/taylorzane Jul 15 '16
Replace that line with this line to get it working on iOS 10. I'm on iOS 10.0 (14A5297c).
id impBlockForIMP = (__bridge id)((__bridge CFTypeRef _Nullable)(block));2
u/culp Jul 12 '16 edited Jul 12 '16
Also getting this error with the latest xcode beta for ios10.
Change the line to be: void (impBlockForIMP)(id) = block;
2
Jul 13 '16
I had the same error, replaced the whole line with your code, and the error has changed to "Illegal initializer (only variables can be initialized)", did I switch out the wrong parts?
2
Jul 13 '16
Well... I found my mistake haha! I blindly copied your code and the superscript didn't copy, so I needed to add a carrot ^ and it worked perfectly :)
95
Jul 02 '16
[removed] — view removed comment
5
u/psa-gba4ios Jul 23 '16 edited Jul 23 '16
I can see where you're coming from, it is a lot to take in and I originally wrote the guide with the target audience of people who had used command line before. It's pretty clear now that all sorts of people want this app, so I decided to sacrifice a lot of technical detail for a single approach that "just works".
However, I'd like to make one suggestion from my work on the project: most of the difficulty comes from the "operational overhead" of having to distribute the software through source code and sideloading, not necessarily due to a negligence on behalf of Riley or the other developers. For instance, all but one of the tweaks you needed to compile the app were fixed by the Masterchen build, but non-technical people still seemed to struggle with it. In other words, Apple's policy brings forward a majority of the technical hurdles restricting access to this and other side-loaded apps, like the need to compile from source and the need to sync the app with your computer every week.
One possible alternative is https://www.reddit.com/r/GBA4iOS/comments/4trbwf/permanent_alternative_to_gba4ios_gba_emulator/, you can give it a shot if you'd like.
2
u/HappyViet Jul 29 '16
Thanks for writing this. Instructions were clear enough. Anyone that has basic reading capabilities can follow these instructions easily.
3
u/psa-gba4ios Jul 31 '16
No problem, and that's certainly reassuring!
2
u/HappyViet Jul 31 '16
Only thing I did differently was clone the repo to the desktop instead of root.
0
u/HappyViet Jul 31 '16
Only thing I did differently was clone the repo to the desktop instead of root.
22
u/Zeroleonheart Jul 18 '16
I can't upvote this comment enough. I was going to try and after looking at the steps, nah I'm good.
11
u/thekingofcrash7 Jul 16 '16
if you have any kind of experience in a terminal you should be able to do it in about 5 min + the time to download things / compile.
I have no experience with xcode but a lot of development experience, and this was pretty straight forward. great guide /u/psa-gba4ios!
11
u/jimmydorry Jul 16 '16
Screw off. Setting up a VM for this has been very challenging, and I've only made progress on it after trying again on an intel CPU (apparently people with AMDs are shit out of luck).
This kind of project is not a 5minute job. Even if you have OSX ready, this guide omits how to install several dependencies. Figuring those out alone take a lot longer than 5minutes.
1
u/Argyle_Raccoon Jul 29 '16
I'm with you on this one actually, I have no development experience and was able to get this work without a hitch.
Took longer to download xcode than to do the rest of it.
You just have to be careful and make sure you enter each step into terminal accurately. As long as you have enough of an understanding of your computer to know how to use cd to change directories I think it's manageable.
2
1
Apr 06 '16
[removed] — view removed comment
1
u/psa-gba4ios Apr 07 '16 edited Apr 11 '16
If you're in the master directory, you can do
cd .., thenrm -rf master, or delete the whole master folder in Finder.
5
u/PotatoFart Apr 04 '16
Every time I try step 6 it says command not found. I made sure to use http and not https. I have have no idea what I'm doing here, except trying to play gameboy games for free. haha