Question: I am getting input of details of the employee from the user and then asking the user to enter the name of the employee, he wants to retrieve information of. I am saving all the entered data in a dictionary with employee name as its key and [employee\_id, salary, address] as the values. Now whatever name I enter to retrieve the details, the output is always the details of the last entered employee.

```
    n = int(input('Enter the number of employee: '))
    employees = {}

    for i in range(n):
        name = input('Enter the name of the employee: ')
        emp_id = input("Enter employee Id: ")
        sal = int(input("Enter the employee salary: "))
        address = input('Enter the employee address: ')
        employees[name] = [emp_id, sal, address]

    while True:
        name = input('Enter employee name: ')
        info = employees.get(name, -1)
        if info == -1:
            print('Employee does not exist')
        else:
            print('Employee details are: \n Employee Id: ', emp_id, '\n Salary: ', sal, '\n Address: ', address)

        exit_choice = input('Do you want to exit [Yes|No]: ')
        if exit_choice == 'No' or exit_choice == 'no':
            break

```

I want to get the output as the details of the employee whose name is entered. Please can you help me get out of this situation?

Answer: 
I followed the solution provided at [this link](https://github.com/aiba/react-native-m1/blob/main/README.md), which:

* cleans pod & yarn caches
* then installs a lower version of react-native:  `npx react-native@0.64.2 init MyApp`.

This solved the problem for me.
I ran into a similar issue when updating the project target OS version.

Actually Xcode will ask you to change the target OS version for the different packages, which then lead to not finding the RCT package anymore for me.

So when xcode tells you there is a good option to change the target settings for different pods, be very careful with that. Either do it step by step and try out or leave it as is, as long as it is building and running.

`npm install` then `pod install` respectively `arch -x86_64 pod install` since I am also running on M1.

Since it might have to do something with that as well I would also disable arm64 in xcode your projects target build phases under build settings "excluded architectures" and only install pods with `arch -x86_64 pod install`.