xCode 4.6: 'PFEventTaps/PFEventTap.h' file not found - objective-c

I am using xCode 4.6 to compile and run Event Taps TestBench from Pfiddlesoft. I downloaded the project and opened it in xCode. When I try to run, I get the error:
Lexical or Preprocessor issue: 'PFEventTaps/PFEventTap.h' file not found.
I spoke with the developer of the test bench and he had me make sure that PFEventTaps was in the Framework. It is. Is there anything else that I might try?

Related

Can't run xctest on macOS app - couldn’t be loaded because it is damaged or missing necessary resources

Please do help me on this scenario. I saw several post related to this, but could not able to resolve the issue with my mac App without pods.
Project is several years old, developed in macOS(Objective C). Now I am trying with XCTest for unit testing. Using Xcode 7.3.1, I am not able to run tests classes.
This project is to create frame work. Project is working fine, only issue is with the testing. We are not supposed to do Pods or some other alternatives.
Console window shows below points:
xctest[35530:345970] The bundle “BaseLibTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. xctest[35530:345970]dlopen_preflight(/Users/12345678/Documents/Modify/Cocoa/Projects/BaseLib/build/Debug/BaseLibTests.xctest/Contents/MacOS/BaseLibTests): Library not loaded: #executable_path/../Frameworks/FreeTDS.framework/Versions/A/FreeTDS
Referenced from: /Users/12345678/Documents/Modify/Cocoa/Projects/BaseLib/build/Debug/BaseLib.framework/Versions/Current/BaseLib
Reason: no suitable image found. Did find:
/Library/Frameworks/FreeTDS.framework/Versions/A/FreeTDS: no matching architecture in universal wrapper)
Program ended with exit code: 82
#Anand For the 3rd Point: Please check the build settings.
Please make sure its either set to Standard Architectures (64-bit Intel) (x86_64) - $(ARCHS_STANDARD) or set to represent proper architectures.
To debug this more, could you please copy paste the exact error you are facing and share the build env variables?

Dyld Error Message: Library not loaded: /usr/lib/libusb-1.0.2.dylib OSX

I am trying to release an app for OSX but every time someone runs the app on their machine they get:
Dyld Error Message:
Library not loaded: /usr/lib/libusb-1.0.2.dylib
Referenced from: /Users/USER/Desktop/____.app/Contents/MacOS/____
Reason: image not found
The guy on this post suggests it is the path that the package was built with Dyld: Library not Loaded Error Mac OS
But even if I build the app with no prefix I still have the issue.
Then I tried to build using:
./configure --disable-dependency-tracking --disable-static --prefix=#executable_path/../Frameworks/
But that gave a error of an invalid path. I am including the dylib in the package. I have to use libusb 1.0.16RC10 because there is a bug in the newest stable release that breaks mouse and keyboard functionality on the MBP for a short period of time ever time you scan for devices.
Please tell me there is a way to have it included that every use doesnt have to compile their own libUSB.
So if you're including your .dylib within the framework directory, now you just need to run the "install_name_tool" to point your app to that dylib within the application package, instead of "/usr/lib".
To do this, add a "Run Script" build step after the compiling and linking has finished. And in this build phase, the script will be as simple as:
install_name_tool -id #executable_path/../Frameworks/libusb-1.0.2.dylib path/to/your/project/libusb-1.0.2.dylib
The tutorial I'm looking at can be found here. I hope this helps you out!

How can I use Farseer with a MonoTouch/ExEn application?

I'm trying to build a game for iOS with XNA and Farseer Physics 3.3, using ExEn and MonoTouch. In theory this should work fine, but I'm having trouble getting Farseer to work on the iPhone.
I compiled Farseer for MonoTouch/ExEn, and it works great in the iPhone Simulator. But as soon as I switch to the actual iPhone, my project no longer compiles. The problem appears to be happening with the MonoDevelop linker. The compiler bombs out with the message "mtouch exited with code 1", and I get the following linker error output: http://pastebin.com/y62ykJP2. If I disable linking in the project options, the application compiles and deploys to the iPhone, but then crashes.
If I comment out all of the code that instantiates objects defined by Farseer, I don't get any linker errors, and the program deploys and runs just fine. So the problem is clearly with my build of Farseer for MonoTouch.
Unfortunately, I have no idea where to go from here. Where should I start looking with a linker error like this? Or, even better: Has anyone successfully compiled Farseer 3.3 and used it with MonoTouch and ExEn?
You're trying to use an assembly compiled for .NET 4.0 in MonoTouch. This will not work (the linker exception you get is because the assembly references a method that does not exist in MonoTouch).
The solution is to compile all assemblies you reference using MonoTouch. Look around to see if anybody already has created a MonoTouch project for Farseer, otherwise you'll have to create one yourself.

Xcode Internal error and no project opens

Im on 10.6 and using xcode 3.2.6. On xcode launch (however i launch) i get an xcode "internal error' popup telling me:
File: /SourceCache/DevToolsBase/DevToolsBase-1809/XcodeFoundation/Specifications/XCSpecification.m
Line: 448
Object:
Method: registerSpecificationProxiesFromPropertyListsInDirectory:recursively:inDomain:inBundle:
path should be a string, but it is nil
I can 'quit' or 'continue'. Continue launches xcode. The problem is that once open if i double click an .xcodeproj - nothing happens within xcode. To open a project I have to manually go file->open and navigate to the file.
Google gives a couple of similar issues - including this one
http://lists.apple.com/archives/mac-games-dev/2011/Mar/threads.html#00001
And i've tried everything i can think of with no joy, (Including down grading to the xcode on the OS DVD).
It looks like it can be an issue with whatever particular version of Xcode that you have running. It might be a good idea to get the latest and greatest to see if it's an issue with the Xcode software itself.
I was just hitting this and fixed it by removing a dead symlink at:
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
This thread tipped me off (although it wasn't Airplay in my case).

Linking libcsoap to iPhone project in Xcode

I have an iPhone project that I want to use libcsoap in to make service calls. I'm having trouble linking a pure c library to xCode though. I've tried everything short of manually rebuilding the project as an Xcode project.
I built it via command line (./configure; make; make install). Then linked the output (libcsoap.a) and connected to the headers. This gave me a linker error saying that libcsoap.a was built for archiving and couldn't be used.
I tried creating a project out of just the makefile but that failed to build.
Can anybody explain to me what I should do to link these?
Thanks in advance,
George