0298941e07
* initial commit * Change files * Updated podfile * Added all sizes to test |
||
---|---|---|
.. | ||
__tests__ | ||
src | ||
.eslintrc.js | ||
.flowconfig | ||
.gitattributes | ||
.gitignore | ||
.prettierrc.js | ||
.watchmanconfig | ||
README.md | ||
app.json | ||
babel.config.js | ||
index.js | ||
just.config.js | ||
launchPackager.command | ||
metro.config.js | ||
package.json | ||
packager.sh | ||
react-native.config.js |
README.md
Running the FluentUI Tester on iOS
FluentUI Tester
is the test app that we use to test our FluentUI components during development. It uses the react-native-test app under the covers, and loads the fluent-tester bundle.
Launch FluentUI Tester
app on iOS
Prereq: FluentUI Tester on iOS can only run on a Mac.
- Make sure you have followed the Getting Started instructions to install packages and build the entire FluentUI React Native repository. I.e. from the root of the repo:
yarn && yarn build
- Then go into
apps/ios/src
folder and run pod install to pull in the project-level Cocoapod dependencies defined in the podfile, and to generate a valid xcworkspace:
cd apps/ios/src
pod install
Note: if you get the error: "CocoaPods could not find compatible versions for pod "MicrosoftFluentUI"," you may need to run pod install --repo-update
.
- Return to the ios directory and run yarn ios to launch the FluentUI Tester app:
cd ..
yarn ios
Troubleshooting
- The first time you yarn ios, you receive an error and have to run "FluentUITester.xcworkspace" directly from Xcode. The workspace can be found in the apps/ios/src folder. After running the workspace the first time from Xcode, you will be able to
yarn ios
from the CLI. - If the packager didn't launch in a separate terminal and your iOS simulator just shows a white screen for your app, you can run yarn start from apps/ios to launch it separately
- If you want to do direct debugging via xcode, after the pod install, you can launch src/FluentUITester.xcworkspace and build/run the scheme "ReactTestApp"
- If you want to have a clean rebuild of the generated iOS project, you can do the following:
cd apps/ios/
rm src/FluentUITester.xcworkspace
rm -r src/Pods/
pod install --project-directory=src.