I am following this guide and get stuck when trying to add a "Run Script" build phase to my project.
I followed the step by step guide on the Hockey website too but unfortunately it seems to be disabled somehow on my project.
Here is what I see:
This is what I should be seeing:
How can I fix this?
EDIT:
These are the additional attempts that I have made, all seem to have the option to add the run script disabled:
After reviewing your problem and check in my Xcode results: Happens to me as well, but there is another way to do this and its working, so this images will help you
I hope this helps you, Regards
Related
I want to make my app, can print so I have run npm install react-native-bluetooth-escpos-printer --save
as enter link description here documentation.
after that I want to make it sure that my project running well after it,
but I found error like , and when I try to link the project the error using this command react-native link react-native-bluetooth-escpos-printer
it also bring me to the another error like Unrecognized command "link".
i dont have idea hot to fix it, please anyone can tell what am I suppose todo
Since no one is maintaining this package. I used https://github.com/januslo/react-native-bluetooth-escpos-printer/pull/114 which is one of the PR for this package which resolved the insecure protocols and used https://www.npmjs.com/package/patch-package to keep the changes. Hope it helps!
Project on flutter. When I try to open a project and just add new dependencies through xcode, the ide does not see them.I don’t even know where to start looking for a solution to the problem, like I’m doing everything right. Can someone help me? if any additional information can help you, please ask me to show you.
Try building the project. The IDE needs to build all of the pods before it picks them up automatically. Easy mistake to overlook.
I ejected from expo.
I ran ‘react-native link’ in the terminal
I moved into the iOS folder and ran ‘pod install’ in the terminal.
Then I opened the padel.xcworkspace in xcode. When I try and build the app
I get an error that says the React/RCTBridgeModule.h file is not
found.
After much googling I understand that I need to “manually add
Pods/Headers/Public to the Header Search Paths configuration” as
described in the expo docs
https://docs.expo.io/versions/latest/guides/expokit.html#changing-native-dependencies
I have absolutely no idea how to do this. Can someone please help me?
When I click on the error message in build time this is what I see:
Where am I supposed to add ‘Pods/Headers/Public’
My best guess is that I have to add an additional path in the ‘Header Search Paths’ section. The problem is that I don’t understand where BUILT_PRODUCTS_DIR corresponds to so I don’t know how to walk it to the pods folder.
Any suggestions?
Finally found the answer to this on step 3 of the docs on manual linking in react native https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking
I have to train some people on our iOS platform, and am trying to get them up to speed asap during a training session.
However, in order to properly run the app from Xcode, the Crashlytics
plugin is needed. Otherwise, the project won't compile and that kinda sucks.
I'm guessing one alternative would be to set up accounts for everybody,
have them download the plugin, properly link it to the app, and we'd be
fine.
BUT, is there another way around this? Is there some way to have them
running the app without the Mac App and all that hassle?
Thanks in advance!
You can check the 'Run script only when installing' checkbox on the Build Phases tab of the Target's properties.
That way you can run the App in the simulator without any hassle.
Mike from Crashlytics here. If the team won't be building any release configurations during the training session, then adding Conditional Logic around the Run Script is the best way to go. Note, that no crash reports would come through.
releaseConfig="Release"
if [ "$releaseConfig" = "${CONFIGURATION}" ]; then
echo "Running Crashlytics"
./Crashlytics.framework/run {your_api_key_here}
fi
Taken from here.
Just remove the Crashlytics run script from the Build Settings of your project.
In the build phases section of Xcode, it is possible to run a script during or after the build process to do whatever.
I am wondering if it is possible to whip up a script that could analyze the code in my project and throw warnings if something isn't right. Kind of like adding my own extra set of rules that if broken, Xcode wouldn't build the app.
Is this possible? Can someone get me going in the right direction?
Thanks!
Possible:
Use your own code analyzer or smth else to check your code
Print errors/warnings in script phase like "error: some error in code"
Emitting errors in Xcode script phase 👇
https://medium.com/#mateuszmatrejek/emitting-errors-and-warnings-in-xcode-run-script-phase-d1cbea551c1b