Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get this to work #1

Open
krummler opened this issue Apr 12, 2013 · 6 comments
Open

Cannot get this to work #1

krummler opened this issue Apr 12, 2013 · 6 comments

Comments

@krummler
Copy link

Hi,

Since i can't find any place to ask for help, I'll write my problem here.

The readme basically defines three steps:

  • Compile as a lib
  • include it and add code
  • modify variables

Step one is rather new to me and I had no idea what to do, but I'll explain what I tried.

  • I already use a different version of Reachability, so I renamed the one from Squash to AppleReachability using refactor->rename
  • I built the file, opened the Products folder in finder and copied the libSquashCocoa iOS.a to my own project
  • I also copied the SquashCocoa.h file, and added both to my build settings
  • I added the code to the project and changed the variables

This leaves me with two problems:

  • I cannot run the application in the simulator because "file was built for archive which is not the architecture being linked (i386)"

  • Running on the ipad works, but upon crash (I throw an NSException) my log gets filled with:

    [PLCrashReport] plcrash_async_mobject_verify_local_pointer:121: Address 221d9d60 out of range 2cb9420 + 2fbc8
    [PLCrashReport] pl_async_objc_parse_objc2_class:597: plcrash_async_mobject_remap_address at 0x1f840d60 returned NULL
    [PLCrashReport] plcrash_async_mobject_verify_local_pointer:121: Address 20f3d3f0 out of range 2cb9420 + 2fbc8

Can you please help me or point me to the proper place?
Thanks a lot!
Kevin

@RISCfuture
Copy link
Contributor

OK, so there are 3 targets in the Xcode project: OSX, iOS, and iOS Simulator. iOS Simulator compiles a static library against the i386 arch, and iOS a static library against the armv7 arch. If you're using the iOS simulator, you need the i386 library.

If you compile the SquashCocoa iOS Tester target, does it work on the simulator and/or your device?

@krummler
Copy link
Author

Trying to run the SquadCocoa iOS Tester doesn't seem to work either, trying to run it on the Simulator gives me:

Ruby 1.9.3@squash_ios is not installed.
Command /bin/sh failed with exit code 1

Trying to run it on the device gives me:

error: /Users/(user)/Library/Developer/Xcode/DerivedData/SquashCocoa-dasalmspeovuenfwhbnfzlmlpvzc/Build/Products/Debug-iphoneos/libSquashCocoa iOS Simulator.a: No such file or directory

@RISCfuture
Copy link
Contributor

You can temporarily disable the "Notify Squash of Release" and "Upload Symbolication Data to Squash" build phases to fix the first error.

@krummler
Copy link
Author

I can start the app, filled in my credentials and sent a test crash. Upon restart of the app my log gets filled with the same error messages:

[PLCrashReport] pl_async_objc_parse_objc2_class:597: plcrash_async_mobject_remap_address at 0x81a75d0 returned NULL
[PLCrashReport] pl_async_objc_parse_from_data_section:746: pl_async_objc_parse_objc2_class error 126248104 while parsing class
[PLCrashReport] plcrash_async_objc_find_method:907: pl_async_objc_parse(0x848c6a0, 0x2025, 0x367b0, 0x7866e88) failure 126248104

@RISCfuture
Copy link
Contributor

And this is the device, the simulator, or both?

@krummler
Copy link
Author

Only on the simulator, unfortunately when I try to run in on a device I get the error I mentioned earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants