XCode 16.1 wird für „iOS-Simulator“ erstellt, aber in Dylib verknüpft, das für „macOS“ erstellt wurde.IOS

Programmierung für iOS
Guest
 XCode 16.1 wird für „iOS-Simulator“ erstellt, aber in Dylib verknüpft, das für „macOS“ erstellt wurde.

Post by Guest »

Ich kann meine native React-App aufgrund eines Fehlers im Zusammenhang mit Hermes nicht mehr erstellen. Das hängt mit der Nichtübereinstimmung der Architektur zusammen, oder? Ich habe mehrere Lösungen ausprobiert, hatte aber kein Glück und habe Podfile auch mehrmals aktualisiert.

Dies ist mein aktuelles Podfile

Code: Select all

# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip

require_relative '../node_modules/react-native-permissions/scripts/setup'

platform :ios, min_ios_version_supported
prepare_react_native_project!

setup_permissions([
'LocationAccuracy',
'LocationAlways',
'LocationWhenInUse',
'PhotoLibrary',
])

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end

target 'Nf3Mobile' do
config = use_native_modules!

use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

target 'Nf3MobileTests' do
inherit! :complete
# Pods for testing
end

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
end
end
Meine Systeminformationen

Code: Select all

System:
OS: macOS 15.2
CPU: (8) arm64 Apple M2
Memory: 95.69 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.0
path: ~/.nvm/versions/node/v18.20.0/bin/node
Yarn: Not Found
npm:
version: 10.5.0
path: ~/.nvm/versions/node/v18.20.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10300.40.2321.11567975
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /Users/milanvala/.sdkman/candidates/java/current/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.1.3
wanted: ^15.1.3
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.2
wanted: 0.74.2
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Image


habe versucht, dies mit dieser Lösung zu beheben, aber es verursachte andere Fehler

[img]https://i.sstatic. net/eAjS3tXv.png[/img]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post