Installing RealmSwift on an Intel mac installs different librealm-monorepo.a binary than when installed on an M1 Mac

Hi @Jay - thanks for the reply and for the welcome :slight_smile:

Stretching my memory here a bit but I don’t think you can go from 4.x to 10.x directly. The underlying file format was changed after 5 (?) and you’ll need to let Realm Studio upgrade the file(s).

I actually didn’t have any apparent issue with my Realm file created in 4.4.1 and migrating to 10.31.0. If there was a file format related issue, should I expect a crash on start up? Or would there be other issues? Everything seemed peachy - so not sure if there’s some failure path I’m missing.

Yes, the compiled binaries are different - are you attempting to build for the same iPhone on both the Intel as M1 Macs? Do they both have the current version of cocoapods installed? 1.11.3 at the moment.

I can confirm the same Cocoapods version was used , 1.11.3, but I think I was targeting a different simulator. On the Intel mac it was an iPhone 13 Pro on iOS 16 I believe, and the on the M1 it was an iPhone 12 running iOS 15.2.

Could you help me understand why those compiled binaries are different? The Realm library ships with those compiled binaries, so I was curious how those differences come to be? I guess I might be operating on the wrong assumption that what you get from a pod install doesn’t depend on the architecture of your system/what iPhone you’re building to - but just the version of the library you’re installing?

Not sure how helpful this is, but here’s a sketch of what the Podfile looks like (not sharing in full since it’s an employer’s), let me know if there’s anything in particular I could share that would be helpful:

target 'main' do 
# realmswift and other pods
    target 'main_tests' do 
        inherit_search_paths!
        some_test_pods
    end

## not exactly the source, there are some conditions i'm not including
 post_install do |installer|
        installer.pods_project.targets.each do |target|
           target.build_configurations.each do |config|
                config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'YES'
                config.build_settings['ENABLE_BITCODE'] = 'NO'
                config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
            end
        end

        installer.generated_projects.each do |project|
            project.targets.each do |target|
                target.build_configurations.each do |config|
                    config.build_settings['DEVELOPMENT_TEAM'] = 'dev_team'
                end
            end
        end
    end
end

# a bunch of abstract targets