Open paulrobertlloyd opened 7 months ago
You can say that again 🤣
I suggest you open up the app in Xcode and remove the Micro.blog Team from the Signing & Capabilities tab in the project settings.
Select None
for both targets.
Then, when ready, and make sure you are running metro with yarn start
, hit the run button and it should hopefully work — I suspect the yarn run-ios
command will also work after you have removed the signing.
I’m not sure this is enough to get it working.
If I use None
, the error I get is:
Signing for "MicroBlog_RN" requires a development team. Select a development team in the Signing & Capabilities editor.
If I select my own account, the errors I get are:
Cannot create a iOS App Development provisioning profile for "blog.micro.ios". Personal development teams, including "paul.lloyd Lloyd", do not support the Push Notifications capability.
No profiles for 'blog.micro.ios' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'blog.micro.ios'.
Try running with yarn ios
instead of through Xcode — that's what worked for me. Though I first had to add #include <functional>
in the FlipperTransportTypes pod
@in-the-trees Which file did you edit? Tried adding this to ios/pods/Flipper/xplat/Flipper/FlipperTransportTypes.h
but that made no difference 😔
@paulrobertlloyd @in-the-trees — I will be removing Flipper from the next versions as it's deprecated and has issues with Xcode as it stands today. Not sure when I can get around to it... because I also had build errors 🤣
@paulrobertlloyd I think we had different issues, apologies for not reading your original post thoroughly enough the first time!
Anyways, I went through the full set up again and wrote down each step I took. Hopefully this helps:
git clone git@github.com:microdotblog/microblog-react.git
cd microblog-react
yarn
cd ios
pod install
#include <functional>
after the string includecd ../
yarn ios --simulator="iPhone 15 Pro"
If you run into Flipper problems, you can also try this for the pod install
step:
NO_FLIPPER=1 pod install
Yarn
After running
yarn ios
, I get the following error:Running
npx react-native doctor
returns no errors.Xcode
Trying to build the app in Xcode, I get the following errors:
Maybe signing and provisioning issues are preventing me from building the app? It worked when I tried last year. Having downloaded 7GB to get the latest version of iOS (it wouldn’t let me build without it), perhaps something has changed in terms of requirements.
I added my iCloud account, but that generated different errors, but seemingly of the same sort.
All of which makes me soooooo very grateful I don’t develop native apps and can largely ignore Apple’s latest proclamations 😅