Comments (6)
Hey,
Yes, this is an annoying issue. It was discussed on this thread, including a moderately rant post from me about the state of package management in the iOS dev community.
I would happily accept a patch which pulls out cocoahttpserver and cocoaasyncsocket as distinct static libraries. That way someone who is already using cocoaasyncsocket could just not link in that library in their Frank target.
from frank.
Thanks, Pete. For my purposes, I'm assuming that deleting the "cocoahttpserver" folder under "3rd Party" in "Frank.xcodeproj" will solve my problem. However, I'm not well versed in gem packaging. How would I create a new gem that I can install locally? Any help or links to tutorials will be greatly appreciated!
from frank.
You should be able to just build the Frank project in xcode, and then copy the libFrank.a that is produced over the one you're currently linking into your project.
from frank.
Hi Pete. Thanks for your help. Unfortunately, I'm still not able to build my project with Frank. Now, I'm getting this error:
ignoring file Frank/libFrank.a, file was built for archive which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"OBJC_CLASS$_SelectorEngineRegistry", referenced from:
objc-class-ref in libShelley.a(SYFrankSelectorEngine.o)
ld: symbol(s) not found for architecture i386
Here is what I did:
- Clone the Frank repo on my Mac
- Open the Frank Xcode project
- Delete all files in the cocoahttpserver folder except for HTTPConnection.h, HTTPResponse.h, HTTPServer.h
- Build. This generates libFrank.a in ~/Library/Developer/Xcode/DerivedData/Frank-[blahblah]/Build/Products/Debug-iphoneos/
- Run frank-skeleton in my project's root
- Replace libFrank.a in the Frank folder that was generated by frank-skeleton with the one from step 4
- Continue the Frank installation per the instructions on testingwithfrank.com
- Build: I get an i386 error
- Go back to the Frank Xcode project and add 2 entries under Debug and Release under Architectures in Build Settings: Any SDK set to Standard (armv7), and Any iOS Simulator SDK set to i386 (which is what I have in my project's build settings)
- Build again and repeat steps 6-8. I still get the i386 error. What am I doing wrong? How can I fix this?
Thanks!
from frank.
I finally figured it out! I had to build the Frank Xcode project for the Simulator target, not iOS Device! Now, I am able to successfully build my project with Frank, and launch the app in the Simulator. However, http://localhost:37265/ is not working. I tried Chrome (oops, this link appears to be broken), Firefox (blank page, 404 in console), and Safari (blank page).
from frank.
Do you see debug output along the lines of
Injecting Frank loader
Creating the server: <HTTPServer: 0xbca7270>
Started HTTP server on port 37265
in your Frankified app's console log during startup? If not then that means the frank server is probably not being linked into your app correctly. Do you have the --all_load and -ObjC linker flags set?
from frank.
Related Issues (20)
- License missing from gemspec
- 'frank inspect' doesn't connect to localhost:37265 HOT 3
- Using the "click" method in a Mac step definition broken
- iOS 7 - FEX_touchPoint not working HOT 1
- Update "Enable Accessibility" instructions to include instructions for OSX Mavericks HOT 3
- Repository says latest version is 1.2.1, but installing via "gem" reports 1.2.2 HOT 1
- UIRefreshControl is continuously animating, even when it is not visible. (_UIRefreshControlModernReplicatorView)
- How to click a button on specify row of tableview ? HOT 2
- [BUG][OSX 10.9 - Xcode5] @frank setup - (NoMethodError) decide_on_project
- Can not click on button after view animated HOT 19
- Symbiote cannot tap on UISwitch in iOS7 HOT 3
- frank could not launch simulator after update xcode to 5.1 HOT 25
- Can't enter text HOT 1
- add link to the official Frank repo HOT 2
- Add support for getting the view class name in Frank framework. HOT 7
- Touch issues with xcode6 HOT 13
- No Running Frank Server after launching Frankified app built on non-debug build configuration
- Unable to execute 'frank launch' command HOT 2
- Error while installing frank-cucumber. Problem with JSON 1.8.1?
- Error installing frank-cucumber. Problem with JSON 1.8.1?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frank.