aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.36k stars 2.1k forks source link

Unable to build RN iOS , Errror: /Build/Products/Debug-iphonesimulator/AmplifyRTNCore/AmplifyRTNCore.modulemap' not found #13305

Open fistofzen opened 2 weeks ago

fistofzen commented 2 weeks ago

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

REST API, GraphQL API, Storage

Amplify Version

v6

Amplify Categories

auth, storage, function, api

Backend

Amplify CLI

Environment information

``` # Put output below this line ``` System: OS: macOS 14.3.1 CPU: (8) arm64 Apple M3 Memory: 130.69 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 20.11.1 - /usr/local/bin/node Yarn: 1.22.21 - /usr/local/bin/yarn npm: 10.2.4 - /usr/local/bin/npm Browsers: Chrome: 124.0.6367.91 Safari: 17.3.1 npmPackages: @aws-amplify/react-native: ^1.0.28 => 1.0.28 @aws-amplify/rtn-web-browser: ^1.0.12 => 1.0.28 @azure/core-asynciterator-polyfill: ^1.0.2 => 1.0.2 @babel/core: ^7.20.0 => 7.24.4 @babel/preset-env: ^7.20.0 => 7.24.4 @babel/runtime: ^7.20.0 => 7.24.4 @ptomasroos/react-native-multi-slider: ^2.2.2 => 2.2.2 @react-native-async-storage/async-storage: ^1.19.5 => 1.23.1 @react-native-clipboard/clipboard: ^1.11.1 => 1.14.1 @react-native-community/blur: ^4.3.2 => 4.4.0 @react-native-community/cli-platform-ios: ^12.0.0 => 12.3.6 (12.3.0) @react-native-community/datetimepicker: ^7.5.0 => 7.7.0 @react-native-community/netinfo: ^11.1.0 => 11.3.1 @react-native-community/progress-view: ^1.3.2 => 1.4.2 @react-native-community/slider: ^4.4.1 => 4.5.2 @react-native/eslint-config: ^0.74.0 => 0.74.81 @react-native/metro-config: ^0.73.2 => 0.73.5 @react-navigation/bottom-tabs: ^6.5.8 => 6.5.20 @react-navigation/drawer: ^6.5.0 => 6.6.15 @react-navigation/native: ^6.1.9 => 6.1.17 @react-navigation/stack: ^6.3.2 => 6.3.29 @stripe/stripe-react-native: ^0.35.0 => 0.35.1 @tsconfig/react-native: ^3.0.0 => 3.0.5 @twotalltotems/react-native-otp-input: ^1.3.11 => 1.3.11 @types/react: ^18.0.24 => 18.3.1 @types/react-test-renderer: ^18.0.0 => 18.3.0 HelloWorld: 0.0.1 aws-amplify: ^6.1.4 => 6.1.4 aws-amplify/adapter-core: undefined () aws-amplify/analytics: undefined () aws-amplify/analytics/kinesis: undefined () aws-amplify/analytics/kinesis-firehose: undefined () aws-amplify/analytics/personalize: undefined () aws-amplify/analytics/pinpoint: undefined () aws-amplify/api: undefined () aws-amplify/api/server: undefined () aws-amplify/auth: undefined () aws-amplify/auth/cognito: undefined () aws-amplify/auth/cognito/server: undefined () aws-amplify/auth/enable-oauth-listener: undefined () aws-amplify/auth/server: undefined () aws-amplify/data: undefined () aws-amplify/data/server: undefined () aws-amplify/datastore: undefined () aws-amplify/in-app-messaging: undefined () aws-amplify/in-app-messaging/pinpoint: undefined () aws-amplify/push-notifications: undefined () aws-amplify/push-notifications/pinpoint: undefined () aws-amplify/storage: undefined () aws-amplify/storage/s3: undefined () aws-amplify/storage/s3/server: undefined () aws-amplify/storage/server: undefined () aws-amplify/utils: undefined () babel-jest: ^29.2.1 => 29.7.0 babel-preset-react-app: ^10.0.1 => 10.0.1 deprecated-react-native-prop-types: ^5.0.0 => 5.0.0 (2.3.0) eslint: ^8.19.0 => 8.57.0 example: 0.0.1 ini: ^4.1.1 => 4.1.2 jest: ^29.2.1 => 29.7.0 lottie-react-native: ^6.4.0 => 6.7.2 metro-react-native-babel-preset: 0.77.0 => 0.77.0 moment: ^2.29.4 => 2.30.1 native-base: ^3.4.28 => 3.4.28 nativewind: ^2.0.11 => 2.0.11 prettier: ^3.0.3 => 3.2.5 react: 18.2.0 => 18.2.0 (18.3.1) react-content-loader: ^6.2.0 => 6.2.1 react-content-loader/native: undefined () react-native: 0.73.2 => 0.73.2 react-native-circular-progress-indicator: ^4.4.2 => 4.4.2 react-native-corner-video: ^1.0.2 => 1.0.2 react-native-countdown-circle-timer: ^3.2.1 => 3.2.1 react-native-date-picker: ^4.2.5 => 4.4.2 react-native-fast-image: ^8.6.3 => 8.6.3 react-native-gesture-handler: ^2.8.0 => 2.16.0 react-native-get-random-values: ^1.10.0 => 1.11.0 react-native-heroicons: ^3.2.0 => 3.2.1 react-native-iap: ^12.11.0 => 12.13.1 react-native-inappbrowser-reborn: ^3.7.0 => 3.7.0 react-native-keyboard-aware-scroll-view: ^0.9.5 => 0.9.5 react-native-linear-gradient: ^2.6.2 => 2.8.3 react-native-logs: ^5.1.0 => 5.1.0 react-native-modal: ^13.0.1 => 13.0.1 react-native-orientation-locker: ^1.5.0 => 1.7.0 react-native-otp-inputs: ^7.4.0 => 7.4.0 react-native-otp-textinput: ^1.1.3 => 1.1.5 react-native-pell-rich-editor: ^1.9.0 => 1.9.0 react-native-progress: ^5.0.0 => 5.0.1 react-native-purchases: 7.4.0-beta.2 => 7.4.0-beta.2 react-native-reanimated: ^3.5.4 => 3.9.0 react-native-reanimated-carousel: ^3.1.0 => 3.5.1 react-native-render-html: ^6.3.4 => 6.3.4 react-native-responsive-dimensions: ^3.1.1 => 3.1.1 react-native-responsive-screen: ^1.4.2 => 1.4.2 react-native-safe-area-context: ^4.7.4 => 4.10.1 react-native-screens: ^3.27.0 => 3.31.1 react-native-sound-player: ^0.13.2 => 0.13.2 react-native-svg: ^13.14.0 => 13.14.0 react-native-uuid: ^2.0.1 => 2.0.2 react-native-vector-icons: ^10.0.2 => 10.0.3 react-native-video: ^6.0.0-beta.3 => 6.0.0-rc.0 react-native-webview: ^13.6.2 => 13.8.6 react-redux: ^8.0.4 => 8.1.3 react-test-renderer: 18.2.0 => 18.2.0 redux: ^4.2.0 => 4.2.1 redux-thunk: ^2.4.1 => 2.4.2 responsive-screen: 0.1.0 responsive-screen-orientation-change: 0.1.0 responsive-screen-styled-components: 0.1.0 rn-sliding-up-panel: ^2.4.6 => 2.4.6 tailwindcss: 3.3.2 => 3.3.2 typescript: 5.2.2 => 5.2.2 npmGlobalPackages: @aws-amplify/cli: 12.10.3 ```

Describe the bug

getting error while building the app in xcode Library/Developer/Xcode/DerivedData/***App-eepmruoihhqanqfhptzmbwoautst/Build/Products/Debug-iphonesimulator/AmplifyRTNCore/AmplifyRTNCore.modulemap' not found

I also changed the parameters but still not worked for me. I am using xcode 15.3 and ios 17.4. image

Expected behavior

building the app.

Reproduction steps

run yarn in project dir run cd ios && pod install open Xcode and build on simulator Wait for error to show

Code Snippet

// Put your code below this line.

Log output

``` // Put your logs below this line ```

aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

cwomack commented 2 weeks ago

Hello, @fistofzen 👋. It looks like this is a similar (if not the same) error reported in #12783 tied to the setup of the XCode IDE. I know you commented on that issue already, but have you had a chance to check your similar to what this comment stated regarding values for your App Target?

I believe this error happens due to either the App Targets or the build settings when using XCode. Is it only happening for you when trying to build using a specific version? Or any version of iOS simulator?

fistofzen commented 1 week ago

Hello,

İt is happening to me always. actually. the project was working fine before amplify upgrade.

image

fistofzen commented 1 week ago

It is also same with other IOS Simulators.

fistofzen commented 1 week ago

Hello, Is there any progress ?