Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Custom Fonts and Expo Migration #163

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

juandiegocv27
Copy link

@juandiegocv27 juandiegocv27 commented Aug 2, 2024

Moved to Expo

  • Switched the project to use the new local Expo CLI.
  • Updated configurations to ensure compatibility with Expo.
  • Tweaked package.json for Expo dependencies and scripts.

Custom Fonts

  • Added custom fonts (Lato and Luciole):
    • assets/fonts/Lato-Bold.ttf
    • assets/fonts/Lato-BoldItalic.ttf
    • assets/fonts/Lato-Italic.ttf
    • assets/fonts/Lato-Regular.ttf
    • assets/fonts/Luciole-Bold-Italic.ttf
    • assets/fonts/Luciole-Bold.ttf
    • assets/fonts/Luciole-Regular-Italic.ttf
    • assets/fonts/Luciole-Regular.ttf
  • Updated app.json to bundle these fonts.
  • Integrated expo-font to load them in the app.

Config and Dependencies

  • Made necessary updates to package.json and other configuration files.
  • Added several dependencies to ensure smooth functionality.

Fixes and Improvements

  • Addressed issues with node modules and deprecated packages.
  • Adjusted Podfile and iOS setup to support the new structure.

PR created by the issue: #158

@juandiegocv27
Copy link
Author

Hi @remicolin, just did this PR, take a look and tell me what to add or change

@remicolin
Copy link
Collaborator

here is the error i got running yarn start:

yarn run v1.22.19 $ expo start WARNING: The legacy expo-cli does not support Node +17. Migrate to the new local Expo CLI: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421.

@juandiegocv27
Copy link
Author

@remicolin take a look please

@remicolin
Copy link
Collaborator

remicolin commented Aug 7, 2024

hi @juandiegocv27

I got this issue while running "yarn ios"

`❌ (/app/ios/Pods/QKMRZScanner/QKMRZScanner/QKMRZScannerView.swift:11:8)

9 | import AVFoundation
10 | import SwiftyTesseract

11 | import QKMRZParser
| ^ could not find module 'QKMRZParser' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: //Library/Developer/Xcode/DerivedData/ProofOfPassport-enubxqnmogwqdgadjstqxubrcbix/Build/Products/Debug-iphonesimulator/QKMRZParser/QKMRZParser.framework/Modules/QKMRZParser.swiftmodule
12 | import AudioToolbox
13 | import Vision
14 | `

@juandiegocv27
Copy link
Author

hi @juandiegocv27

I got this issue while running "yarn ios"

`❌ (/app/ios/Pods/QKMRZScanner/QKMRZScanner/QKMRZScannerView.swift:11:8)

9 | import AVFoundation

10 | import SwiftyTesseract

11 | import QKMRZParser

 |        ^ could not find module 'QKMRZParser' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /<path>/Library/Developer/Xcode/DerivedData/ProofOfPassport-enubxqnmogwqdgadjstqxubrcbix/Build/Products/Debug-iphonesimulator/QKMRZParser/QKMRZParser.framework/Modules/QKMRZParser.swiftmodule

12 | import AudioToolbox

13 | import Vision

14 | `

ok, let me fix it 🫡

@juandiegocv27
Copy link
Author

@remicolin let me know🫡

@remicolin
Copy link
Collaborator

hi @juandiegocv27 error is fixed but i got a new one:

`› Linking ProofOfPassport » ProofOfPassport
⚠️ ld: ignoring duplicate libraries: '-lc++'
⚠️ ld: search path '/app/ios/MoproKit/Libs' not found
⚠️ ld: search path '/Library/Developer/Xcode/DerivedData/ProofOfPassport-enubxqnmogwqdgadjstqxubrcbix/Build/Products/Debug-iphonesimulator/MoproKit' not found

❌ ld: framework 'CoreAudioTypes' not found

❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)

⚠️ Skipping duplicate file: node_modules/react-native/ReactCommon/yoga/yoga/enums/Align.h
Remove: Xcode » Pods/Yoga » Build Phases » Copy Headers » Align.h

⚠️ Skipping duplicate file: node_modules/react-native/ReactCommon/yoga/yoga/enums/FlexDirection.h
Remove: Xcode » Pods/Yoga » Build Phases » Copy Headers » FlexDirection.h

› 2 error(s), and 7 warning(s)

CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants