-
Notifications
You must be signed in to change notification settings - Fork 24
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
(BSR) build(ios): fix build #7662
Conversation
@nmajorfrances-pass est-ce que tu arrives à build avec ça ? @mmeissonnier-pass tu avais ajouté la dépendance, est-ce que fonctionne encore chez toi ? |
en installant le build iOS est encore cassé sur ma machine, mais ça échoue plus tard dans le process, il faut que je regarde pourquoi le build Android est cassé sur ma machine avec le proxy d'activé (problème de certificat) en désactivant le proxy, le build échoue avec l'erreur suivante 'compileDebugJavaWithJavac' task (current target is 11) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version. donc peut etre que ça casse le build Android, il faut peut etre que je ré-exporte des variables d'environnment nécessaire à Android |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ca build chez moi
Before this commit ================== When doing the following command ```sh yarn ios:prod ``` It fails with the error ```txt warn Package react-native-flipper contains invalid configuration: "dependency.platforms.ios.project" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. info Found Xcode workspace "PassCulture.xcworkspace" info No booted devices or simulators found. Launching first available simulator... The file /nix/store/2y71rl5mnazwnpwpcq07xx97jl7sy5lh-apple-sdk-11.3/Applications/Simulator.app does not exist. error Command failed: open /nix/store/2y71rl5mnazwnpwpcq07xx97jl7sy5lh-apple-sdk-11.3/Applications/Simulator.app --args -CurrentDeviceUDID EBDBAC65-9268-4D4A-8785-03A099743F7B The file /nix/store/2y71rl5mnazwnpwpcq07xx97jl7sy5lh-apple-sdk-11.3/Applications/Simulator.app does not exist. . Error: Command failed: open /nix/store/2y71rl5mnazwnpwpcq07xx97jl7sy5lh-apple-sdk-11.3/Applications/Simulator.app --args -CurrentDeviceUDID EBDBAC65-9268-4D4A-8785-03A099743F7B The file /nix/store/2y71rl5mnazwnpwpcq07xx97jl7sy5lh-apple-sdk-11.3/Applications/Simulator.app does not exist. at checkExecSyncError (node:child_process:890:11) at Object.execFileSync (node:child_process:926:15) at runOnSimulator (/Users/eb/Project/pass-culture/pass-culture-app-native/node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js:219:28) at Object.runIOS [as func] (/Users/eb/Project/pass-culture/pass-culture-app-native/node_modules/@react-native-community/cli-platform-ios/build/commands/runIOS/index.js:144:14) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Command.handleAction (/Users/eb/Project/pass-culture/pass-culture-app-native/node_modules/@react-native-community/cli/build/index.js:111:9) ``` When looking for XCode path, with the following command ```sh xcode-select --print-path ``` It outputs this ```txt /nix/store/2y71rl5mnazwnpwpcq07xx97jl7sy5lh-apple-sdk-11.3 ``` Because installing JDK througth DevBox set the following variable environment ```sh DEVELOPER_DIR=/nix/store/2y71rl5mnazwnpwpcq07xx97jl7sy5lh-apple-sdk-11.3 ``` XCode-select seems to display this variable when set The following test command ```sh DEVELOPER_DIR=toto xcode-select --print-path ``` Displays ```txt toto ``` After this commit ================= ```sh xcode-select --print-path ``` ```txt /Applications/Xcode.app/Contents/Developer ```
avant, ça me semblait nécessaire maintenant, j'ai l'impression que ça cause plus de problèmes que ça n'en résoud
1fabead
to
b4c0ffc
Compare
avec le Proxy activé :
|
|
|
Link to JIRA ticket: https://passculture.atlassian.net/browse/PC-XXXXX
Flakiness
If I had to re-run tests in the CI due to flakiness, I add the incident on Notion
Checklist
I have:
Best Practices
Click to expand
These rules apply to files that you make changes to. If you can't respect one of these rules, be sure to explain why with a comment. If you consider correcting the issue is too time consuming/complex: create a ticket. Link the ticket in the code.as
(type assertions are removed at compile-time, there is no runtime checking associated with a type assertion. There won’t be an exception ornull
generated if the type assertion is wrong). In certain casesas const
is acceptable (for example when defining readonly arrays/objects). Usingas
in tests is tolerable.any
(when you want to accept anything because you will be blindly passing it through without interacting with it, you can useunknown
). Usingany
in tests is tolerable.!
when you know that the value can’t benull
orundefined
).@ts-expect-error
and@eslint-disable
.yarn test:lint
,yarn test:types
,yarn start:web
...).gap
(ViewGap
) instead of<Spacer.Column />
,<Spacer.Row />
or<Spacer.Flex />
.Test specific:
user
tofireEvent
.setFeatureFlags
. If not possible, mention which one(s) you want to mock in a comment (example:jest.spyOn(useFeatureFlagAPI, 'useFeatureFlag').mockReturnValue(true) // WIP_NEW_OFFER_TILE in renderPassPlaylist.tsx
)await act(async () => {})
andawait waitFor(/* ... */)
byawait screen.findBySomething()
.act
by default andwaitFor
as a last resort.Advice: