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
Problem Building HomeAssistant with Lottie on M1 Mac #1681
Comments
|
You may be the first person to attempt to build on an Apple Silicon machine, so I'm guessing that's the issue here. It looks like Lottie's trying to build using x86_64 instead of arm64, but I'm not sure why that would be. Just to double check - you haven't launched Xcode in any kind of Rosetta mode, right? Are there any underlying errors elsewhere in the build step? Can you copy/paste the full build command and output from the build progress in the Navigator > Report Navigator > Build. |
|
That is correct @zacwest, I didn't launch it in any kind of Rosetta mode. And I just exported and attached the failed build report. Let me know if there is any other information that would be helpful. |
|
Your log there definitely looks like it's trying to compile for x86_64, but almost certainly debug is building only the active arch. You can test this theory by commenting out One other thing you can try is build with entirely-source pods -- run |
|
I tried both of those things and unfortunately neither of them worked. Commenting out Trying to run |
|
Probably the easiest way to get this working is to run the rosetta version of the simulator. I'm not sure why things aren't working as-is, but it may help to add |
Did you manage to get it working, because i try to run it on my M1 Mac using rosetta but when i run the command bundle exec pod install --repo-update i get the error "NotificationTestCases" ` CocoaPods 1.11.2 is available. For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.11.2 Analyzing dependencies |
|
Hmm, I've had some trouble with that one too. For the moment you can comment it out in the Podfile (it's used to grab .json files, not code, so it will still run), I need to switch that to a subrepo or a script which pulls in those shared test cases. |
|
After serveral trial and errors i made it up to install successfully on M1 MAC.
i got the error: then i tried
and finally installation was successful but now i have the error here below on target WachApp but cant't figure out what this means.
@zacwest |
|
|
|
Can you share the exact modifications you did to the xcconfig? The advised route is to add additional keys in a gitignored xcconfig, but if you replace the team ID in all the places the xcconfig references it, you're opting into manual code signing for those targets, which requires special entitlements from Apple that you must apply for. |
|
I changed the "team ID" only in the above illustrated HomeAssistant file and then ran the build. |
|
I followed the advised route and put "DEVELOPMENT_TEAM" and the "BUNDLE_ID_PREFIX" in a new config file "HomeAssistant.overrides.xcconfig" This time I didn't change anything in the "HomeAssistant.xcconfig" ran the installation with success, switched sheme to app-debug then i ran the build and ended up with the same result as previously editing directly the "HomeAssistant.xcconfig", e.g. I have to switch the provisioning profile in the build settings from "Local Developer" to "automatic". This works for targets "App" and "Extension-PushProvider" but not for "Watchapp". |
|
Ah, I see; I thought setting the CODE_SIGNING_STYLE to Manual conditionally would cause it to ignore that specified provisioning profile, but it's still using it as the basis for automatic. That explains why App & the Extensions-PushProvider targets are not working. I do not see any obvious reason why the WatchApp target is failing, though; it doesn't use any special entitlements there. Can you go to the Signing report in the issue navigator as it's suggesting and paste the contents? It'll look like: |
|
like this ? |
|
I tried removing the target "Watchapp" but then i get another kind of error and here i the log: |
|
Give that branch a try, it should resolve the automatic code signing issues. |
|
i switched over to branch automatic provisioning but ended up with the same error as above when i removed the target Watchapp and here the error logs: |
|
Deleting that target will require you to re-integrate Cocoapods, probably; but you should not need to delete the WatchApp target with the branch above. |
This is the build result with the branch "automatic-provisioning" without deleting the target "WatchApp" |
|
Can you try cleaning in Xcode in Product > Clean Build Folder? This seems like it may be a stale build profile in the new build system. You may need to kill the Pods directory entirely from the earlier target deletion if it's confused. |
|
I already did a "Clean Build Folder" and ran again the working installation procedure for the M1 Mac |
|
It's erroring on the It looks like it's the |
|
it compiled with success by changing the build phase position for the [CP] Embed Pods Frameworks |
|
@zacwest I have a last issue concerning the push notifications. i still get the build warnings "push provider is disabled". related log warnings: what do i have to do to enable push notifiations ? |
|
That's the local push extension, which requires a special provisioning profile entitlement from Apple. You can ignore it if you're going to be sending notifications via APNS. |
|
I've got an M1 now (hooray!) and everything seems peachy at this point. |
did you have to reorder the build phase position too ? |
|
No |
















I have cloned this repo and am trying to get it up and running for a debug build on the simulator currently. I am using an M1 Mac mini and I am on macOS 11.4. Also, my Xcode version is 12.5. Here are the steps I took to build the open the project before I tried to build it.
git clone https://github.com/home-assistant/iOS.git cd iOSAfter this, I deleted the
Gemfile.lockfile as I was getting the error "google-api-client-0.38.0 requires ruby version ~> 2.4, which is incompatible with the current version, ruby 3.0.1p64" when running the next step of the setup process (bundle install). Then I proceeded with the following commands:bundle install bundle exec pod install --repo-update open HomeAssistant.xcworkspaceOnce Xcode opened, I selected the
App-Debugscheme and chose the iPhone 12 simulator, then I tried to run the application. This build unfortunately fails with the Swift compiler error "Could not find module 'Lottie' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator" and I have not been able to remedy this.Any help to get this up and working would be appreciated. Thanks
The text was updated successfully, but these errors were encountered: