When trying to build DisplayCandy, the terminal gives me this error - ios

DisplayCandy is an animations framework for iOS. I'm trying to modify it (with the author's permission of course) to mimic the iOS 6.x animations on iOS 7.x/8.x. First off, I wanted to see if the original code worked on iOS 8.x, but this happened when running "make package" in terminal:
Making all in displaycandysettings...
Making all for bundle DisplayCandySettings...
Copying resource directories into the bundle wrapper...
Compiling DCSettingsListController.m...
Linking bundle DisplayCandySettings...
Stripping DisplayCandySettings...
Signing DisplayCandySettings...
Making all for tweak DisplayCandy...
Compiling DCFunctions.m...
DCFunctions.m:3:10: fatal error: 'GraphicsServices/GraphicsServices.h' file not
found
#include <GraphicsServices/GraphicsServices.h>
^
1 error generated.
make[2]: *** [obj/DCFunctions.m.4c382f22.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [DisplayCandy.all.tweak.variables] Error 2
I have set the theos symlinks in both the project files and the files for the preference panel. The code is available here. I'm not the developer of the original tweak, but I am going to modify it to mimic the iOS 6 animations. How do I fix the error? It seems there's a file missing, but I don't know where I can obtain this file, nor do I know where I should put the file. I'm using a MacBook Pro on OS X 10.10.1, and am trying to deploy to an iPod touch 5th generation running iOS 8.1.

That's a really old framework you're dealing with there. GraphicsServices is part of the undocumented headers for iOS 3.x and 4.x. It originates from the https://github.com/kennytm/iphone-private-frameworks GitHub project.
Given the import path GraphicsServices/GraphicsServices.h you would need to put the GraphicsServices folder at the root level of your project to fix the compilation error.

Related

Unable to cross compile iOS programs on linux

I know that someone already asked this question but it isn`t up to date anymore. Most of the links are dead and the commands are not relevant anymore.
I have read these
Compile IOS program from linux commandline
How to cross-compile clang/llvm for iOS?
For example, I have been trying to compile silversearcher-ag for my iPhone 6 (jailbroken). This is the project link https://github.com/ggreer/the_silver_searcher.
I am targeting iOS 12.4.
These are the commands that I`ve tried
./configure CC=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang CXX=/home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target/bin/arm-apple-darwin11-clang++ --host=arm-apple-darwin11
make
I am using cctools-port to cross compile the project. My compiled cctools toolchain is located under /home/growtopiajaw/Desktop/cctools-port-master/usage_examples/ios_toolchain/target and below is how the toolchain`s directory structure looks like
This is my configure log: https://del.dog/nugibonury
This is my make log:
CC src/ignore.o
In file included from src/ignore.c:11:
./src/options.h:7:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
^~~~~~~~
1 error generated.
make: *** [Makefile:494: src/ignore.o] Error 1
This is my GitHub repository containing the cross compile toolchain
https://github.com/GrowtopiaJaw/arm-apple-darwin11
Apple does not ship PCRE. You need to get the headers and dylib/tbd files manually.
If you're using checkra1n or unc0ver, then the deb on the APT repo contains headers as well, so you could just use that.
If you plan to package this into an APT/dpkg file, make sure to add pcre as a dependency.

Xcode 10 - Can't Build React Native Application

Since updating the Xcode 10, I cannot build and run my app either on a physical device or on the simulator. I have tried via the terminal and directly through Xcode. What I have tried:
Removing my repo and re pulling.
https://github.com/facebook/react-native/issues/19573
https://github.com/facebook/react-native/issues/14382
https://medium.com/#swyx/if-you-get-a-third-party-config-h-35a3c54e9278
Print: Entry, ":CFBundleIdentifier", Does Not Exist
"config.h" file not found in iOS project of React native
I do not know what is left to do. I have had all the errors outlined in the above links. the main one that I am having trouble with at the moment is that config.h does exist and cfbundleidentifier", does not exist.
After following the instructions layed out in all the links provided, all I needed to do was run npm audit fix and it started working.

iOS firebase Mach-O Linker Error without cocapods

I'm trying to import Firebase into my iOS app. I followed this tutorial for doing this manually with Objective-C (as opposed to using CocoaPods).
http://www.mokacoding.com/blog/setting-up-firebase-without-cocoapods/
When I try to build my project, I get the following errors:
"Apple Mach-O Linker Error"
"Linker command failed with exit code 1 (use -v to see invocation)"
I'm familiar with the Linux CLI (less so with Macs), but I don't understand how to apply the -v flag to XCode's build process to get more info.
I've been Googling this for the last 3 hours, but every answer I find seems to be directed at users who weren't using an XCode workspace with CocoaPods.
I don't have CocoaPods installed, so I don't think this is my issue. Despite that I have converted my project and properly imported it into an XCode workspace, this still didn't solve my problem.
My app is a Swift project, and I have imported the modulemap, firebase.h, and googleServices.plist files.
I've also made my Header and Library search paths recursive for the entire project folder in an attempt to fix this.
Here's my project navigation. Although at this point I suspect it's some kind of build setting that isn't correct.
Some selected answers I've tried to apply without success:
Apple Mach -O Linker command failed
In Xcode how do I create a new workspace and add 1 project to it so that I can see the project and its files?
Framework not found GoogleToolboxForMac
Adding system header search path to Xcode
https://github.com/firebase/firebase-ios-sdk/issues/258
Apple Mach-O Linker & Ditto Error - Xcode 8
https://github.com/invertase/react-native-firebase/issues/198
https://forum.ionicframework.com/t/ios-xcode-8-apple-mach-o-linker-ld-error-group-in-xcode/89903
Upgrading to xcode 9.2 fixes this. It appears to be an issue with earlier versions not properly handling linking.
Which is misleading b/c the firebase documentation indicates it's compatible with xcode 8. But I think that's assuming you use cocoapods. If you don't, and instead try to link the obj-c frameworks you need xcode 9+
Once I knew how to examine the more verbose linking error, googling for x86_64 led me to some helpful answers.
This and other answers helped me investigate upgrading.
ld: framework not found Stripe for architecture x86_64

IOS Xcode 8 Dsymulti Warning

I just update my project to Xcode 8 but don't know why my xcode console is flood with Dsymulti warning message.
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/CoreFoundation-10I2D2XL7L7X9.pcm: No such file or directory
My project still can build successfully. Any one know how can we deal with these warnings?
For me, I could solve setting in Build Settings
Generate Debug Symbols = No

XCode can't find wrong .app file

I changed the name of my app from X to Y. It was working before, but for some reason it no longer is working after doing a fresh pull. It's giving me this error (from YTests):
ld: file not found: <DerivedData Directory>/X.app/X
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It's looking for X.app instead of Y.app. I've looked through the build settings and it is Y.app everywhere. It's looking for the wrong file inside of Tests. When I disable testing, I can run the app but I still get the error. Any suggestions?
Note: I'm using Xcode6-Beta5.
After digging around, I realized that this was the actual cause of the error. What confused me is that it was working for a while, and then it stopped all of a sudden.
xcode 4 fails to initiate unit tests (with linker error) after I created a new scheme
The solution is:
Go to build settings of the test target.
Search for your old app name.
Replace old app name with new app name. (Linking -> Bundle Loader -> Debug & Release)

Resources